Tigervnc not running

Hi,

I am trying to setup tigervnc on F42.

After installing the tigervnc packages I created a vncpassword

$ vncpasswd

I copied the user environment config template from the /etc/tigervnc/ directory to my user account home directory by executing the following command:

$ cp /etc/tigervnc/vncserver-config-mandatory ~/.vnc/config

Then I created the configuration file:

# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service

In /etc/tigervnc/vncserver.users I created my username.

I started the service:

$ sudo systemctl start vncserver@:1 

and checked the status:

$ sudo systemctl status vncserver@:1

$ sudo systemctl status vncserver@:1
○ vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: inactive (dead) since Tue 2025-10-28 17:00:13 CET; 12s ago
Duration: 46ms
Invocation: 042351711b6a4031968399d087ea13ed
Process: 13202 ExecStartPre=/usr/libexec/vncsession-restore :1 (code=exited, status=0/SUCCESS)
Process: 13213 ExecStart=/usr/libexec/vncsession-start :1 (code=exited, status=0/SUCCESS)
Main PID: 13221 (code=exited, status=0/SUCCESS)
Mem peak: 5.5M
CPU: 77ms

okt 28 17:00:13 2a02-a46b-362f-0-f6fd-cb3c-5e13-d737.fixed6.kpn.net systemd[1]: Starting vncserver@:1.service - Remote desktop service (VNC)…
okt 28 17:00:13 2a02-a46b-362f-0-f6fd-cb3c-5e13-d737.fixed6.kpn.net systemd[1]: Started vncserver@:1.service - Remote desktop service (VNC).
okt 28 17:00:13 2a02-a46b-362f-0-f6fd-cb3c-5e13-d737.fixed6.kpn.net systemd[1]: vncserver@:1.service: Deactivated successfully.

I understand that the server started, but also has been deactivated. As expected I cannot set up a remote connection.

I must have missed something in the settings. Does anyone have a clue?

Did you edit ~/.vnc/config to tell tigervnc to start a session? For example, my config file has:

session=gnome

Yes, I did. My config file also has:

session=gnome