Skip to content

Honor vncserver command on start and other fixes. - #265

Merged
robert-ancell merged 3 commits into
ubuntu:mainfrom
apteryks:honor-vncserver-command-on-start
Aug 26, 2022
Merged

Honor vncserver command on start and other fixes.#265
robert-ancell merged 3 commits into
ubuntu:mainfrom
apteryks:honor-vncserver-command-on-start

Conversation

@apteryks

@apteryks apteryks commented Aug 9, 2022

Copy link
Copy Markdown
Contributor

With these changes, the feature works for me using the latest TigerVNC release (1.12.0).

Fixes ubuntu#264.

* src/lightdm.c (start_display_manager): Validate if the VNCServer
command provided binary is available; fallback to 'Xvnc' otherwise.
When providing the VNCServer command as 'Xvnc -SecurityTypes None',
the formatted command line used would look like:

  Xvnc  -SecurityTypes None :1 -auth /var/run/lightdm/root/:1

which is invalid (the display number must appear first).

* src/x-server-local.c (x_server_local_start): Format the command
placing the display number before any other provided arguments.
@github-actions

github-actions Bot commented Aug 9, 2022

Copy link
Copy Markdown

Everyone contributing to this PR have now signed the CLA. Thanks!

There is no longer support for 8 bit color depth in TigerVNC (see:
TigerVNC/tigervnc@e86d872);
using it causes a fatal error.

* src/x-server-xvnc.c (x_server_xvnc_init): Set default depth to 24 bit.
* tests/scripts/vnc-command.conf (command): Adjust accordingly.
* tests/scripts/vnc-guest.conf (user-session): Likewise.
* tests/scripts/vnc-login.conf (user-session): Likewise.
* tests/scripts/vnc-open-file-descriptors.conf (user-session): Likewise.
* data/lightdm.conf: Likewise.
@apteryks
apteryks force-pushed the honor-vncserver-command-on-start branch from 02e3d25 to 3a66b9c Compare August 11, 2022 15:57
@robert-ancell

Copy link
Copy Markdown
Collaborator

Thanks!

@robert-ancell
robert-ancell merged commit ba7f6ef into ubuntu:main Aug 26, 2022
@JPeisach JPeisach added this to the 1.33.0 milestone Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants