#494 lxsession-logout not exiting lxde

open
nobody
lxsession (48)
5
2012-05-18
2012-05-18
Jeremy C. Reed
No

Using startlxde from lxde-common-0.5.5 and lxsession-logout from lxsession -0.4.6.1 on NetBSD.

The startup runs: dbus-launch which creates a socket in /tmp/

But using logout from menu results in:

** (lxsession-logout:25760): WARNING **: dbus-interface.c:66: Failed to connect to the system message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

I instrumented the startxlxde to ktrace the two processes and their descendents. Here are some details:

17905 1 dbus-launch NAMI "/home/reed/.dbus/session-bus/3f956952edcc96f53f
d01f5d49be0152-192.168.1.5_1"

17905 1 dbus-launch GIO fd 1 wrote 193 bytes
"DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/dbus-gOHcIXDEnF,guid=85351b48\ 86d3b091077c2d384fb5db96';\nexport DBUS_SESSION_BUS_ADDRESS;\nDBUS_SES\ SION_BUS_PID=23774;\nDBUS_SESSION_BUS_WINDOWID=2097153;\n"

25760 1 lxsession-logout CALL connect(6,0x7f7fffffd6b0,0x21)
25760 1 lxsession-logout MISC mbsoname: 33, 00012f7661722f72756e2f6462757
32f73797374656d5f6275735f736f636b6574
25760 1 lxsession-logout NAMI "/var/run/dbus/system_bus_socket"
25760 1 lxsession-logout RET c

I ran it again (so note different details):

$ env | grep -i dbus
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-6EQY1sG6kD,guid=eb2c87952b1f99d3134134684fb5dee3

The other two DBUS variables are not "export"ed.

I realized that dbus server was not running. So I started the daemon. Then that warning went away. I restarted lxde.

My main problem with this still exists. I logout using lxsession-logout gui and startlxde and lxsession exits, but the window manager (openbox) and desktop pcmanfm, menu-cached, and lxpanel are all still running. The desktop environment appears to look and work the same (minus the session manager). Opening this ticket to make sure all closes on logout.

Also please document that dbus service needs to be ran also.

Discussion