[X2Go-Commits] [x2goclient] 179/280: src/pulsemanager.cpp: don't remove PA config and log file in ~/.x2go/pulse on PA shutdown if debugging has been requested.

git-admin at x2go.org git-admin at x2go.org
Wed Jan 18 12:25:43 CET 2017


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

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

commit a0bc1253a06cc9657a2e6e6613f7e9f1b9c0591c
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Jun 2 04:24:38 2016 +0200

    src/pulsemanager.cpp: don't remove PA config and log file in ~/.x2go/pulse on PA shutdown if debugging has been requested.
---
 debian/changelog     |    2 ++
 src/pulsemanager.cpp |   10 ++++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2b66337..b2a2c0d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -329,6 +329,8 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
     - src/pulsemanager.cpp: insert PULSE_SERVER and PULSE_COOKIE variables
       into environment as used by PulseManager. Otherwise we won't be able to
       start binaries like paplay.
+    - src/pulsemanager.cpp: don't remove PA config and log file in
+      ~/.x2go/pulse on PA shutdown if debugging has been requested.
 
   [ Bernard Cafarelli ]
   * New upstream version (4.0.5.3):
diff --git a/src/pulsemanager.cpp b/src/pulsemanager.cpp
index 539b85b..ce7ba24 100644
--- a/src/pulsemanager.cpp
+++ b/src/pulsemanager.cpp
@@ -619,10 +619,12 @@ void PulseManager::slot_on_pulse_finished (int exit_code) {
 
 #if defined (Q_OS_DARWIN) || defined (Q_OS_WIN)
   // Remove server config file, otherwise the directory won't be empty.
-  work_dir.remove (QDir::toNativeSeparators (QDir (pulse_dir_.absolutePath ()
-                                                   + "/config.pa").absolutePath ()));
-  work_dir.remove (QDir::toNativeSeparators (QDir (pulse_dir_.absolutePath ()
-                                                   + "/pulse.log").absolutePath ()));
+  if (!debug_) {
+    work_dir.remove (QDir::toNativeSeparators (QDir (pulse_dir_.absolutePath ()
+                                                     + "/config.pa").absolutePath ()));
+    work_dir.remove (QDir::toNativeSeparators (QDir (pulse_dir_.absolutePath ()
+                                                     + "/pulse.log").absolutePath ()));
+  }
 #else // Linux
   // FIXME.
 #endif

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