aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")