[Xfce-bugs] [Bug 7502] Running xfce4 under vnc xfce4-session report "Another session manager is already running"

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Wed Jan 29 13:15:09 CET 2014


https://bugzilla.xfce.org/show_bug.cgi?id=7502

Alexis Huxley <alexishuxley at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexishuxley at gmail.com

--- Comment #6 from Alexis Huxley <alexishuxley at gmail.com> ---
For those interested, you can see the code that was introduced at
http://git.xfce.org/xfce/xfce4-session/tree/xfce4-session/manager.c?id=b0eec65b45fe4417351ca86f85095232df6d2f95.

In addition, I found a nice workaround, which was to strip the enviromnent
in ~/.vnc/xstartup before calling xfce4-session. The code in this the
above-mentioned change suggested it would be enough to strip SESSION_MANAGER, 
but this did not prove to be enough, so I stripped everything apart from what I
knew I needed. This gave me the following xstartup script, which worked for me:

guest at mandala:~$ cat ~/.vnc/xstartup 
#!/bin/bash

env -i /bin/sh -c "export PATH=$PATH;
                   export XAUTHORITY=$XAUTHORITY;
                   export DISPLAY=$DISPLAY;
                   export HOME=$HOME;
                   export LOGNAME=$LOGNAME;
                   export USER=$USER;
                   /usr/bin/xfce4-session"
guest at mandala:~$ 

I hope that helps somebody!

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list