Page 1 of 1

lxsession -Not a X session manager

Posted: Tue Apr 02, 2013 3:54 pm
by werner
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

Re: lxsession -Not a X session manager

Posted: Tue Apr 02, 2013 7:11 pm
by werner
Just done a patch ... now I have a ~/.config/lxsession/FVWM/shutdown with

FvwmCommand -r 'Module FvwmSaveDesk'
xdotool search --classname Navigator windowactivate --sync %1 key --window %1 --delay 25 alt+q
sleep 3
sed -ri '/(qinternet|coolmail|xosview|xclock)/d' ~/.fvwm2desk
FvwmCommand Quit

... the sleep after the xdotool call will firefox eable to save its sessions as otherwise it reports a crash o next start. The sed command removes the saved session done by the FVEM module FvwmSaveDesk. Those programs are started in the autostart file.

Re: lxsession -Not a X session manager

Posted: Tue Apr 02, 2013 7:17 pm
by werner
Hmm ... how the point `Upload attachment' has to be used? Fust tried this but the patch is not visible ...

Re: lxsession -Not a X session manager

Posted: Tue Apr 02, 2013 7:22 pm
by werner
werner wrote:Hmm ... how the point `Upload attachment' has to be used? Fust tried this but the patch is not visible ...
OK ... FAQ says: ``Attachment permissions are granted on a per forum, per group, or per user basis.'' ... ``Contact the board administrator if you are unsure about why you are unable to add attachments.''

Hmmm ... Who is the board administrator here in place :D

Re: lxsession -Not a X session manager

Posted: Tue Apr 02, 2013 7:42 pm
by werner
Ahh ... sourceforge is required. OK, then this has to wait as I currently do not have access to my sourceforge account as the password is stored in an other firefox installation at work ;)

For those who like to know how the patch xsession-0.4.6.1-support-shutdown-commands.patch works,
have a look at

https://build.opensuse.org/package/show ... X11%3Alxde

Greetings

Re: lxsession -Not a X session manager

Posted: Thu Apr 04, 2013 8:43 pm
by werner
Question: Why the session restore function had been removed from lxsession? I've found several bugreports at Debian as well as some feature requests about this feature which seems to be missed by users (including me).

Re: lxsession -Not a X session manager

Posted: Thu Apr 04, 2013 8:55 pm
by werner
werner wrote:Question: Why the session restore function had been removed from lxsession? I've found several bugreports at Debian as well as some feature requests about this feature which seems to be missed by users (including me).
http://sourceforge.net/tracker/?func=de ... tid=894872
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523619
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617459

Neverthless the manual page shows: ``Moreover, when the user logout, it remembers the applications in use, and restart them the next time you login.''