aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2015-08-27 12:42:21 +0100
committerSebastien Bacher <seb128@ubuntu.com>2015-08-27 12:42:21 +0100
commit2b2b43c261b18558d2b5a85c46bb393814fe8aea (patch)
treee9c781ad766ff65d4c7b4267d368c8b479961cba
parentf76bbdf9eefaffd594078efe534ad1090f5aa41f (diff)
downloadayatana-indicator-sound-2b2b43c261b18558d2b5a85c46bb393814fe8aea.tar.gz
ayatana-indicator-sound-2b2b43c261b18558d2b5a85c46bb393814fe8aea.tar.bz2
ayatana-indicator-sound-2b2b43c261b18558d2b5a85c46bb393814fe8aea.zip
under unity8 start system-settings instead unity-control-center
-rw-r--r--src/service.vala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/service.vala b/src/service.vala
index a69e231..a08edf3 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -206,6 +206,13 @@ public class IndicatorSound.Service: Object {
void activate_desktop_settings (SimpleAction action, Variant? param) {
var env = Environment.get_variable ("DESKTOP_SESSION");
string cmd;
+
+ if (Environment.get_variable ("MIR_SOCKET") != null)
+ {
+ UrlDispatch.send ("settings:///system/sound");
+ return;
+ }
+
if (env == "xubuntu" || env == "ubuntustudio")
cmd = "pavucontrol";
else if (env == "mate")