aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2015-09-15 08:19:48 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2015-09-15 08:19:48 +0000
commit10af8b5fa2c12a89e3554ec05ea1ab8a922ac1c8 (patch)
treee9c781ad766ff65d4c7b4267d368c8b479961cba
parentf76bbdf9eefaffd594078efe534ad1090f5aa41f (diff)
parent2b2b43c261b18558d2b5a85c46bb393814fe8aea (diff)
downloadayatana-indicator-sound-10af8b5fa2c12a89e3554ec05ea1ab8a922ac1c8.tar.gz
ayatana-indicator-sound-10af8b5fa2c12a89e3554ec05ea1ab8a922ac1c8.tar.bz2
ayatana-indicator-sound-10af8b5fa2c12a89e3554ec05ea1ab8a922ac1c8.zip
under unity8 start system-settings instead unity-control-center Fixes: #1489427
Approved by: Charles Kerr, PS Jenkins bot, Ted Gould
-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")