Repository navigation
fix(x2go): look up the Windows client with a single folder first, then with a list - #192
Merged
Merged
Conversation
…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
approved these changes
Nov 4, 2026
aschumann-virtualcable
deleted the
fix/v4.0-x2go-windows-client-lookup
branch
November 5, 2026 22:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Launching an X2Go transport from a Windows client fails with:
UDS Plugin Error: expected str, bytes or os.PathLike object, not listThe extra search path accepted by the client's
find_applicationchanged 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.pypasses a list anddirect.pypasses a single folder, so each one fails on one of the two client generations.Change
Both Windows scripts (
tunnel.pyanddirect.py) now search with a single folder and, if the client is not found, search again with a list, ignoring theTypeErrorraised by clients that do not accept it. If X2Go is not installed the existing error message is still shown. The.signaturefiles are regenerated.The installed clients are not touched, so nothing has to be redistributed. Only the signed scripts served by the broker change.
Testing
find_applicationvariants, 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.