[X2Go-Commits] [x2goclient] 194/281: src/pulsemanager.cpp: add warning message boxes where appropriate.

git-admin at x2go.org git-admin at x2go.org
Thu Jan 19 13:05:48 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 2769efb799c55263910ff65c0f9588b315f87c8f
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Jun 22 04:19:27 2016 +0200

    src/pulsemanager.cpp: add warning message boxes where appropriate.
---
 debian/changelog     |    1 +
 src/pulsemanager.cpp |   16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index ad6f4da..ef8c981 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -354,6 +354,7 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
     - src/pulsemanager.cpp: fix startup when using the system-PA version.
     - src/pulsemanager.cpp: fix startup sound playback when using the
       system-PA version.
+    - src/pulsemanager.cpp: add warning message boxes where appropriate.
 
   [ Bernard Cafarelli ]
   * New upstream version (4.0.5.3):
diff --git a/src/pulsemanager.cpp b/src/pulsemanager.cpp
index e837a97..223b7df 100644
--- a/src/pulsemanager.cpp
+++ b/src/pulsemanager.cpp
@@ -263,6 +263,14 @@ void PulseManager::start_generic () {
   }
   else {
     x2goErrorf (27) << "PulseAudio failed to start! Sound support will not be available.";
+    show_RichText_WarningMsgBox (tr ("PulseAudio failed to start!"),
+                                 tr ("Sound support will not be available.\n\n"
+                                     "If you downloaded the bundled, pre-compiled version from the official home page, "
+                                     "please report a bug on:\n"
+                                     "<center><a href=\"https://wiki.x2go.org/doku.php/wiki:bugs\">"
+                                       "https://wiki.x2go.org/doku.php/wiki:bugs"
+                                     "</a></center>\n"),
+                                 true);
   }
 }
 
@@ -731,6 +739,14 @@ void PulseManager::slot_play_startup_sound () {
     }
     else {
       x2goErrorf (26) << "Unable to play startup sound! Something may be wrong.";
+      show_RichText_WarningMsgBox (tr ("Unable to play startup sound."),
+                                   tr ("If you downloaded the bundled, pre-compiled version from the official home page "
+                                       "or the upstream Linux packages, "
+                                       "please report a bug on:\n"
+                                       "<center><a href=\"https://wiki.x2go.org/doku.php/wiki:bugs\">"
+                                         "https://wiki.x2go.org/doku.php/wiki:bugs"
+                                       "</a></center>\n"),
+                                   true);
     }
   }
 }

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