gbar problems in Hyprland.
So I installed Hyprland with gBar, and I want to make gBar start from hyprland.conf. First, I tried to do it as always:
exec-once gBar bar 0
But that didn’t work, so I wrote a script to do it:
#!/bin/bash
echo "Starting gBar script..." >> /tmp/gbar.log
sleep 5
echo "Launching gBar..." >> /tmp/gbar.log
gBar bar 0 >> /tmp/gbar.log 2>> /tmp/gbar.error.log &
echo "gBar launched" >> /tmp/gbar.log
It did not work again, but at least I got an error in the logs:
(gBar:9983): GLib-GIO-CRITICAL **: 16:15:06.392: g_dbus_connection_flush_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Does anyone know what causes this, and more importantly, how to fix it? I’m asking here because this is the last place on the internet that could solve my problem.
Any help or responses would be greatly appreciated.