[X2Go-Commits] [x2goclient] 47/94: take user name from session profile if --session-profile is used

git-admin at x2go.org git-admin at x2go.org
Fri Dec 15 21:04:42 CET 2023


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to annotated tag 0.1.4.0
in repository x2goclient.

commit a777014192b21d25b5f119a0647a5c370f574491
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue May 17 09:24:08 2011 +0200

    take user name from session profile if --session-profile is used
---
 pyhoca-cli | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pyhoca-cli b/pyhoca-cli
index 4b74424f..c26198de 100755
--- a/pyhoca-cli
+++ b/pyhoca-cli
@@ -184,7 +184,7 @@ Possible values for the --pack NX option are:
         version()
 
     # if no username is given we use the uid under which this programme is run
-    if a.username is None:
+    if a.username is None and not a.session_profile:
         a.username = current_user
 
     # statically no password from the command line
@@ -272,7 +272,6 @@ Possible values for the --pack NX option are:
     if a.share_local_folders is not None:
         a.share_local_folders = a.share_local_folders.split(',')
 
-
     if a.server:
 
         ##### TODO: ssh_config to be moved into Python X2go!!!!

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list