diff options
author | Xavi Garcia Mena <xavi.garcia.mena@canonical.com> | 2015-09-17 16:31:37 +0200 |
---|---|---|
committer | Xavi Garcia Mena <xavi.garcia.mena@canonical.com> | 2015-09-17 16:31:37 +0200 |
commit | c258047f9704b1baafc4bf25e92cba66101d8744 (patch) | |
tree | eb9cb412684fae45e4b4c2c837544769d6e4723b /src | |
parent | 619162fa3519848d135b4502f782cb4f118b5fac (diff) | |
parent | 918c9b9a95573b0dfe0e2e67ef30b998b5576e82 (diff) | |
download | ayatana-indicator-sound-c258047f9704b1baafc4bf25e92cba66101d8744.tar.gz ayatana-indicator-sound-c258047f9704b1baafc4bf25e92cba66101d8744.tar.bz2 ayatana-indicator-sound-c258047f9704b1baafc4bf25e92cba66101d8744.zip |
merged with trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/service.vala | 7 |
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") |