For a few years now I've been using Xfce as my desktop both at work and at home. When I work from home, I use x2go to connect to my work desktop, which starts a new session in parallel with the session still active on the console at work.
I upgraded to Fedora 24 on my work machine (at home it's Arch) and since then, I can't start a new session remotely if I have one active on the console, nor can I start one on the console if one is still active via X2Go. I have to kill the opposite session in order to be able to log in again.
Has something maybe changed in recent versions of XFCE that would explain this? I hacked xfce4-session so that it logs it output to a file on my work machine, and when I attempt to log in via XFCE I get:
xfce4-session: Another session manager is already running
Here are the XFCE RPMs installed on my work machine:
xfce4-cpugraph-plugin-1.0.5-9.fc24.x86_64 xfce4-systemload-plugin-1.1.2-4.fc24.x86_64 xfce4-settings-4.12.0-7.fc24.x86_64 xfce4-battery-plugin-1.0.5-11.fc24.x86_64 xfce4-dict-plugin-0.7.2-1.fc24.x86_64 xfce4-genmon-plugin-3.4.0-9.fc24.x86_64 xfce4-power-manager-1.6.0-4.fc24.x86_64 xfce4-fsguard-plugin-1.0.2-3.fc24.x86_64 xfce4-terminal-0.6.3-9.fc24.x86_64 xfce4-whiskermenu-plugin-1.5.3-1.fc24.x86_64 xfce4-eyes-plugin-4.4.5-1.fc24.x86_64 xfce4-weather-plugin-0.8.7-1.fc24.x86_64 xfce4-session-4.12.1-9.fc24.x86_64 xfce4-diskperf-plugin-2.5.5-3.fc24.x86_64 xfce4-verve-plugin-1.0.1-5.fc24.x86_64 xfce4-pulseaudio-plugin-0.2.4-4.fc24.x86_64 xfce4-session-engines-4.12.1-9.fc24.x86_64 xfce4-places-plugin-1.7.0-4.fc24.x86_64 xfce4-timer-plugin-1.6.0-3.fc24.x86_64 libxfce4ui-4.12.1-4.fc24.x86_64 xfce4-netload-plugin-1.2.4-4.fc24.x86_64 xfce-polkit-0.2-8.fc24.x86_64 im-chooser-xfce-1.6.4-8.fc24.x86_64 xfce4-mount-plugin-0.6.7-6.fc24.x86_64 xfce4-notifyd-0.2.4-9.fc24.x86_64 xfce4-screenshooter-1.8.2-6.fc24.x86_64 xfce4-datetime-plugin-0.6.2-7.fc24.x86_64 xfce4-appfinder-4.12.0-5.fc24.x86_64 xfce4-doc-4.8.3-6.fc17.noarch xfce4-mailwatch-plugin-1.2.0-8.fc24.x86_64 xfce4-taskmanager-1.1.0-5.fc24.x86_64 xfce4-time-out-plugin-1.0.1-10.fc24.x86_64 gtk-xfce-engine-3.2.0-3.fc24.x86_64 xfce4-xkb-plugin-0.7.1-4.fc24.x86_64 xfce4-clipman-plugin-1.2.6-8.fc24.x86_64 xfce4-panel-4.12.0-5.fc24.x86_64 imsettings-xfce-1.7.1-1.fc24.x86_64 xfce4-dict-0.7.2-1.fc24.x86_64 xfce4-sensors-plugin-1.2.5-4.fc24.x86_64 libxfce4util-4.12.1-3.fc24.x86_64 xfce4-screenshooter-plugin-1.8.2-6.fc24.x86_64
Thanks in advance,
Yes, i run into the same issue. I need to connect multiple times (sessions) to an terminal server running XFCE as the same user. My workarround in the moment is to use another desktop environment (LXDE). But i do not like LXDE for every day use.
ToZ, any comment, any idea?
I did manage to find a workaround (more of a hack) to make this work, I should have posted it here. Unfortunately it stopped working when I upgraded my work machine again to Fedora 25. I've just been looking though and it may just be because the upgrade blew away my hack.
I'll see if I can recreate it again, but what I did, if I remember correctly, was to move aside the xfce4-session binary and put a shell script in its place that unset a few environment variables, having to do with sessions and dbus, and then called the original xfce4-session. That seemed to trick it into thinking there was not already a session running.
Here's also a workarround: https://bugzilla.xfce.org/show_bug.cgi?id=7502
#!/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"
Call this script in .xinitrc instead of exec startxfce4. It works, but i found a glitch than:
On main session, my terminal looks normal (Opacity 85%). On the second session (started with the helper-script), my xfce4-terminal has a fully transparent (non existing) background. Looks really funny. The matter is, the "Opacity"-Value in Appearance of the xfce4-terminal is always zero.