NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.3k stars 13.54k forks source link

turbovnc: window manager option doesn't work #266459

Open michaelCTS opened 10 months ago

michaelCTS commented 10 months ago

Describe the bug

When calling turbovnc with a window manager name, it will always start with TWM, regardless of the name provided.

Steps To Reproduce

Steps to reproduce the behavior:

  1. install icewm or put it in the path
  2. start turbovnc vncserver -wm icewm
  3. connect client to vnc session

Expected behavior

The window manager used should be the one specified in the configuration or through the command line.

Screenshots

desktop session

Additional context

The problem stems from the default startup script looking in /usr/share/xsessions/ for .desktop files in the format $wm-session.desktop. -wm can be passed a path to a .desktop file, but the default startup script promptly extracts the session name from the path and searches in /usr/share/xsessions/.

This applies to other VNC solutions as well.

A workaround is documented in the wiki by using -xstartup.

Notify maintainers

@nh2

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.133+, Ubuntu, 20.04.6 LTS (Focal Fossa), nobuild`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/home/user/.nix-defexpr/channels/nixpkgs`
OmerFarukOruc commented 6 months ago

any news, i suffer from same issue.