canonical / lightdm

Display Manager
GNU General Public License v3.0
827 stars 138 forks source link

vnc_server_start ignores VNCServer's command, looks 'Xvnc' in PATH #264

Closed Apteryks closed 2 years ago

Apteryks commented 2 years ago

Hi,

Using LightDM 1.32, I configured a custom command for the VNCServer:

#
# VNC Server configuration
#
[VNCServer]
enabled=true
command=/gnu/store/ccfkylswsbrmd8vjij8zwqrz4y5gchrb-tigervnc-server-1.12.0-0.b484c22bin/Xvnc  -SecurityTypes None
port=5900
listen-address=0.0.0.0

Unfortunately, upon starting, lightdm looks for a Xvnc on PATH, ignoring the above command, and fails with [+0.13s] WARNING: Can't start VNC server, Xvnc is not in the path.

I guess it's a bug that it doesn't honor VNCServer's command in start_display_manager (lightdm.c:292) ? The command seems to be refined in seat_xvnc_class_init (seat-xvnc.c:124), but probably too late, if the VNC server has already been launched?

Thank you.

Apteryks commented 2 years ago

Thank you!