lxsession -Not a X session manager
Posted: Tue Apr 02, 2013 3:54 pm
As fvwm user I've tried lxsession -e FVWM -s FVWM with kdm as replacement for xsm as xsm does not support ck-launch-session/dbus/polkit/gpg/ssh. Currently I start those helpers with an ~/.xsesion if not already started by the system default scripts. I've read in the manual page
A session manager is used to automatically start a set of applications and set up a working desktop environment.
Moreover, when the user logout, it remembers the applications in use, and restart them the next time you login.
the first is true but the second one is *not* true. This because the X Session Management Protocol is not supported by the lxsession (no public socket nor SESSION_MANAGER environment variable). Also the lxsession has only the possiblity to use an autostart file but no a shutdown file nor does lxsession provide a dbus API interface. It will be simply terminated by lxsession-logout and then fvwm and all clients simply lost the X connection which is not a controlled logout/shutdown. Maybe such a shutdown file could be executed by lxsession-logout if the session will be terminated.
Werner
A session manager is used to automatically start a set of applications and set up a working desktop environment.
Moreover, when the user logout, it remembers the applications in use, and restart them the next time you login.
the first is true but the second one is *not* true. This because the X Session Management Protocol is not supported by the lxsession (no public socket nor SESSION_MANAGER environment variable). Also the lxsession has only the possiblity to use an autostart file but no a shutdown file nor does lxsession provide a dbus API interface. It will be simply terminated by lxsession-logout and then fvwm and all clients simply lost the X connection which is not a controlled logout/shutdown. Maybe such a shutdown file could be executed by lxsession-logout if the session will be terminated.
Werner