On Sat, 24 Feb 2024 20:11:20 -0800 Samuel Sieb wrote: > On 2/24/24 08:52, Sam Varshavchik wrote: >> ... and that was because even xfce is not going to work. The reason was >> dumped into ~/.vnc/*log: >> /usr/bin/startxfce4: X server already running on display :1 >> MESA: error: ZINK: failed to choose pdev >> glx: failed to create drisw screen >> failed to load driver: zink >> xfce4-session-Message: 11:40:42.960: SSH authentication agent is already >> running >> xinit: connection to X server lost >> So this is not a Gnome limitation, but a systemd limitation. > You say the reason is there, but what reason are you seeing? The only > difference from when it does work is that last line from xinit. > (I was mistaken about the "already running" message. That should happen > because Xvnc is started and xfce should not be starting an X server.) Right, because /usr/sbin/vncsession (a binary) called from the /usr/libexec/vncsession-start script by the vncserver@.service does a: xinit /etc/X11/xinit/Xsession COMMAND -- /usr/bin/Xvnc :1 OPTIONS where COMMAND is the command specified in the Exec= option of the /usr/share/xsessions/SESSION.desktop file. For xfce, this is startxfce4 that print the "X server already running..." message if DISPLAY is set and do not call then xinit itself. It would be worth to trace this script to know precisely what happens. No courage to do that at the moment :-( I made the following test that works for me: replace startxfce4 by xfce4-session: - make a new session /usr/share/xsessions/xfcetest.desktop with: [Desktop Entry] Version=1.0 Name=XfceTest Session Exec=xfce4-session Icon= Type=Application DesktopNames=XFCETEST - declare session=xfcetest in ~/.vnc/config Can you try it ? I do that on a minimal Fedora machine having only xfce4 as sessions. The initial test I made with session=xfce4 worked may be because, since this xfce4 session doesn't exist, vncsession switched to the only existing session (xfce) and in a different way that worked. In addition, I installed fluxbox and it works with vncsession. > 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. -- francis -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue