Skip to content

fix(x2go): look up the Windows client with a single folder first, then with a list - #192

Merged
dkmstr merged 1 commit into
v4.0from
fix/v4.0-x2go-windows-client-lookup
Nov 4, 2026
Merged

dkmstr merged 1 commit into
v4.0from
fix/v4.0-x2go-windows-client-lookup

Conversation

@aschumann-virtualcable

Copy link
Copy Markdown
Contributor

Problem

Launching an X2Go transport from a Windows client fails with:

UDS Plugin Error: expected str, bytes or os.PathLike object, not list

The extra search path accepted by the client's find_application changed in March 2025: older clients take a list of folders, later ones take a single folder. The Windows client served with the current stable 4.0 is a later one. The transport scripts disagree with each other: tunnel.py passes a list and direct.py passes a single folder, so each one fails on one of the two client generations.

Change

Both Windows scripts (tunnel.py and direct.py) now search with a single folder and, if the client is not found, search again with a list, ignoring the TypeError raised by clients that do not accept it. If X2Go is not installed the existing error message is still shown. The .signature files are regenerated.

The installed clients are not touched, so nothing has to be redistributed. Only the signed scripts served by the broker change.

Testing

  • Both scripts were run against both find_application variants, with and without X2Go installed (8 cases). Before the change 3 of them failed, one with the exact error above. After the change all pass.
  • The signatures verify against the public key.
  • The four files were copied to a test appliance (4.0, build 20261030). Not yet tried from a real Windows client.

…n with a list

Windows clients built after March 2025 only accept a single folder as the
extra search path of findApp, while older ones expect a list. The tunnel
script passed a list and failed on newer clients with 'expected str, bytes
or os.PathLike object, not list'; the direct script passed a single folder
and failed on older ones.

Both scripts now search with a single folder and, if the client is not
found, search again with a list, ignoring the TypeError raised by clients
that do not accept it. Signatures regenerated.
@dkmstr
dkmstr merged commit 135eb3d into v4.0 Nov 4, 2026
2 checks passed
@aschumann-virtualcable
aschumann-virtualcable deleted the fix/v4.0-x2go-windows-client-lookup branch November 5, 2026 22:31
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.

2 participants