[X2Go-Commits] [x2goclient] 02/02: src/onmainwindow.cpp: convert piece of code to non-Windows and non-Darwin, so that not only Linux but other operating systems are covered as well.

git-admin at x2go.org git-admin at x2go.org
Sat Dec 31 01:31:06 CET 2016


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

x2go pushed a commit to branch bugfix/osx
in repository x2goclient.

commit 7d2748ba559d411c775c448b2b83a7c8cba966b3
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Dec 15 09:44:17 2016 +0100

    src/onmainwindow.cpp: convert piece of code to non-Windows and non-Darwin, so that not only Linux but other operating systems are covered as well.
---
 debian/changelog     |    3 +++
 src/onmainwindow.cpp |    4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 770982d..f1b4aa9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -507,6 +507,9 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
       GCC doesn't seem to like reassigning the pointer otherwise.
     - src/unix_stdint.h: use same hack to import ssize_t into std namespace.
     - src/onmainwindow.{cpp,h}: remove left-over parec references and code.
+    - src/onmainwindow.cpp: convert piece of code to non-Windows and
+      non-Darwin, so that not only Linux but other operating systems are
+      covered as well.
 
   [ Bernard Cafarelli ]
   * New upstream version (4.0.5.3):
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index 4e617ea..0570592 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -5340,10 +5340,10 @@ void ONMainWindow::slotRetResumeSess ( bool result,
         }
         if ( sndSystem==ESD )
         {
-#ifdef Q_OS_LINUX
+#if !defined (Q_OS_WIN) && !defined (Q_OS_DARWIN)
             sshConnection->copyFile(homeDir+"/.esd_auth",
                                     "$HOME/.esd_auth" );
-#else /* defined (Q_OS_LINUX) */
+#else /* !defined (Q_OS_WIN) && !defined (Q_OS_DARWIN) */
             QString cooFile = QDir::toNativeSeparators (QDir (pulseManager->get_pulse_dir ().absolutePath () +
                                                               "/.esd_auth").absolutePath ());
             QString destFile="$HOME/.esd_auth";

--
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