On Sat, 24 Feb 2024 23:23:28 -0800 Samuel Sieb wrote:
On 2/24/24 23:17, Francis.Montagnac(a)inria.fr wrote:
>> It does have something to do with running from systemd, but I have no
>> idea what it is.
> Not sure at all of that. It seems to be instead an compatibility
between
> vncsession and startxfce4.
It's directly related to running from systemd while the user is
already
logged in. If the user isn't logged in, it works fine from systemd.
Right: I did my test being not logged in (at the console). It fails also with
xfcetest, thus the startxfce4 script is not the culprit.
xfce failed for me yesterday with a different message in the log:
Starting desktop session xfce
Unrecognized option: -xsession
use: X [:<display>] [option]
but today it works (while being not logged in).
If the user is logged in and you start it from the command line, it
also
works.
Right, from a terminal of the main session with:
sudo /usr/libexec/vncsession-start :1
So it's only the combination. I did run a strace, but it's
not
clear what's going on. It almost seems like it's something to do with
the ssh agent, but I wasn't motivated enough to really follow it.
Being logged in with fluxbox and starting a fluxbox VNC session works also.
--
francis