[X2Go-Dev] @Alex: x2goclient feature request

Stefan Baur newsgroups.mail2 at stefanbaur.de
Thu Apr 5 10:12:47 CEST 2012


Hi Alex,

would it be possible to allow a username override via command line 
option? Currently, --user is only supported in LDAP mode.

It might be a nice feature to provide the option to specify a username 
on the command line, overriding the username in the sessions file.

That way, one could create desktop icons (at least on Windows, but 
probably also on *nix) which pass the user name along, as in (for Windows):
x2goclient.exe --portable --user="%USERNAME%" 
--session-conf="\\server\share\sessions" --session="Default" 
--home="%USERPROFILE%"

%USERNAME% and %USERPROFILE% are system variables on Windows, similar to 
$USER and $HOME on *nix.

Assuming your user names are the same on Windows and on the x2go server, 
this allows for one central sessions file that still automatically picks 
the right user name.

Sadly, this feature doesn't help me, because I'm in the unlucky position 
that user names are different between Windows and *nix, but maybe some 
other users out there could use this feature...

My workaround will probably be something along the lines of

x2goclient.exe --portable 
--session-conf="\\server\share\sessions.%USERNAME%" --session="Default" 
--home="%USERPROFILE%"

which means I will have to keep a seperate sessions file for each user, 
but at least I can clone it from a template.

-Stefan



More information about the x2go-dev mailing list