Bugzilla – Bug 115360
xfce4-session breaks for 2nd screen
Last modified: 2005-09-08 10:44:26 UTC
using xfce4 with xfce4-session on display :0 works fine. but when I try to start a 2nd X server using "startx -- :1" with xfce4 too, I get the error xfce4-session: Another session manager is already running the same happens with xinit -- :1 and startxfce4 in the new xterm. BUT: when I start :1 locally with "xinit -- :1" and then I log in from remote using ssh and start xfce4 from the remote session using DISPLAY=:1.0 startxfc4 everything works perfect. what's going on here with xfce4 session management ?
found the difference between locally starting startxfce4 and from a remote shell: locally there is an environment variable SESSION_MANAGER=local/compaq:/tmp/.ICE-unix/6331 which should not propagage to a 2nd X server when starting startx -- :1 maybe you want to patch the startx script !? that's the easy one ;-) but what about xinit -- :1 maybe the xinit binary should be changed to know about SESSION_MANAGER and remove it if set ? Egbert ?
Egbert, what's your opinion on comment #1?
(In reply to comment #1) > found the difference between locally starting startxfce4 and from a remote shell: > locally there is an environment variable > > SESSION_MANAGER=local/compaq:/tmp/.ICE-unix/6331 > > which should not propagage to a 2nd X server when starting > > startx -- :1 > > maybe you want to patch the startx script !? that's the easy one ;-) > but what about > > xinit -- :1 > > maybe the xinit binary should be changed to know about SESSION_MANAGER and > remove it if set ? > > Egbert ? quick update after some more thinking during a car ride;-) I'm not too familiar with all the X11 session manager stuff and all the different window/desktop managers, so maybe better use a minimal patch for xfce4 only ? how about this one? --- /etc/xdg/xfce4/xinitrc~ 2005-08-30 00:03:59.000000000 +0200 +++ /etc/xdg/xfce4/xinitrc 2005-09-06 18:09:17.603072000 +0200 @@ -74,6 +74,7 @@ x|xno*) ;; *) + unset SESSION_MANAGER $xfcesm if test $kill_sshagent -eq 1; then
Lukas, how do you like the modification of /etc/xdg/xfce4/xinitrc (it's in xfce4-desktop)?
I assume that the SESSION_MANAGER environment variable is set by the fce environment. Therefore the idea to patch startx is out of the question. I agree with Harald's patch to add the uset to an xfce4 specific xinitrc.
Submitted fixed package to STABLE.