lxsession -Not a X session manager

The standard session manager used by LXDE - http://wiki.lxde.org/en/LXSession

lxsession -Not a X session manager

Postby werner » Tue Apr 02, 2013 4: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
werner
 
Posts: 7
Joined: Tue Apr 02, 2013 4:09 pm

Re: lxsession -Not a X session manager

Postby werner » Tue Apr 02, 2013 8:11 pm

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.
werner
 
Posts: 7
Joined: Tue Apr 02, 2013 4:09 pm

Re: lxsession -Not a X session manager

Postby werner » Tue Apr 02, 2013 8:17 pm

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

Re: lxsession -Not a X session manager

Postby werner » Tue Apr 02, 2013 8:22 pm

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
werner
 
Posts: 7
Joined: Tue Apr 02, 2013 4:09 pm

Re: lxsession -Not a X session manager

Postby werner » Tue Apr 02, 2013 8:42 pm

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
werner
 
Posts: 7
Joined: Tue Apr 02, 2013 4:09 pm

Re: lxsession -Not a X session manager

Postby werner » Thu Apr 04, 2013 9:43 pm

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).
werner
 
Posts: 7
Joined: Tue Apr 02, 2013 4:09 pm

Re: lxsession -Not a X session manager

Postby werner » Thu Apr 04, 2013 9:55 pm

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.''
werner
 
Posts: 7
Joined: Tue Apr 02, 2013 4:09 pm


Return to LXSession (Lite)

Who is online

Users browsing this forum: No registered users and 1 guest