Open teto opened 8 years ago
Depends on who launches D-Bus in your session? I remember having similar issues years ago, moving some stuff from the WM start script into .xinitrc (which starts the WM as the last thing in my setup) solved them.
I am on ubuntu 16.04, from pstree I see that systemd calls dbus-launch, is that correct ? From ps -ax, I seem to have a few processes running:
3809 tty1 S 0:00 dbus-launch --autolaunch=ca5b9ee2d20a0f1641630a1d5528ef4e --binary-syntax --close-stderr
3810 tty1 S 0:00 i3
3814 ? SNsl 0:00 /usr/lib/rtkit/rtkit-daemon
3828 ? Ss 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
3850 ? Sl 0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
3855 ? S 0:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
3857 ? Sl 0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
when I restart i3, it always works. I don't know much about dbus
Adding the following to core/__init__.py
(at the top or in the constructor of Status
) solved the problem for me:
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
I haven't submitted this as a pull request because I'm not sure if it's the right solution or just a hack that happens to work.
Adding the following to
core/__init__.py
(at the top or in the constructor ofStatus
) solved the problem for me
Hello. I encountered the same problem (i run Debian 9.5). Your tip solved my problem. It would be good if the developer of the program would pay attention to the solution to this problem and say what he thinks about it.
I have next to no idea about dbus. And even less idea about glib. The latter's mutual, though.
I have next to no idea about dbus. And even less idea about glib. The latter's mutual, though.
Thank you for clarification on this. Pkkm solution works well. I will look at how it will continue.
Since my upgrade to ubuntu 16.04, I get this error on startup
If I restart i3bar, it's ok so I suspect a race condition since I boot in 4sec; i3pystatus might launch before dbus ?