[X2Go-Commits] [x2goclient] 01/01: src/onmainwindow.cpp: do not automatically set login user name to current system user if empty.

git-admin at x2go.org git-admin at x2go.org
Tue Apr 25 01:29:30 CEST 2017


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

x2go pushed a commit to branch master
in repository x2goclient.

commit f17597a9dab10908fdcca5980fea6ee2dfcb2286
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Tue Apr 25 01:28:44 2017 +0200

    src/onmainwindow.cpp: do not automatically set login user name to current system user if empty.
    
    Unbreaks default user name fetching via libssh.
    
    Might break some use cases (especially RDP, XDMCP).
---
 debian/changelog     |  3 +++
 src/onmainwindow.cpp | 11 -----------
 2 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 79439be..57e48d8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -145,6 +145,9 @@ x2goclient (4.1.0.1-0x2go1) UNRELEASED; urgency=medium
     - macbuild.sh: use the new volume icon that actually also looks like a
       disk drive. Fixes: #930.
     - src/onmainwindow.cpp: typo fix only.
+    - src/onmainwindow.cpp: do not automatically set login user name to
+      current system user if empty. Unbreaks default user name fetching via
+      libssh. Might break some use cases (especially RDP, XDMCP).
 
   [ Oleksandr Shneyder ]
   * New upstream version (4.1.0.1):
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index 6e11044..6107c76 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -6393,17 +6393,6 @@ void ONMainWindow::slotShowPassForm()
         pass->setFocus();
         pass->selectAll();
     }
-    else
-    {
-#ifdef Q_OS_WIN
-        login->setText(getenv("USERNAME"));
-#else
-        login->setText(getenv("USER"));
-#endif
-        login->setFocus();
-        login->selectAll();
-    }
-
 
     if ( !embedMode )
     {

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list