diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-11-10 08:55:16 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-11-11 09:01:47 +0100 |
commit | 29180e8d44fdb0231819cf59c4a5c749f03c8132 (patch) | |
tree | 7f40783955754273844e7e9b98d3cc33d96b6577 /src/service.vala | |
parent | 7cc8dae65b189a35c700e3a1a8428ecdc08fe124 (diff) | |
download | ayatana-indicator-sound-29180e8d44fdb0231819cf59c4a5c749f03c8132.tar.gz ayatana-indicator-sound-29180e8d44fdb0231819cf59c4a5c749f03c8132.tar.bz2 ayatana-indicator-sound-29180e8d44fdb0231819cf59c4a5c749f03c8132.zip |
src/service.vala: Properly recognize a MATE desktop session when launched via LightDM's default lighdm-xsession.
Diffstat (limited to 'src/service.vala')
-rw-r--r-- | src/service.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/service.vala b/src/service.vala index 76f2574..d5eacdf 100644 --- a/src/service.vala +++ b/src/service.vala @@ -251,6 +251,7 @@ public class IndicatorSound.Service: Object { void activate_desktop_settings (SimpleAction action, Variant? param) { unowned string env = Environment.get_variable ("DESKTOP_SESSION"); + unowned string xdg_desktop = Environment.get_variable ("XDG_CURRENT_DESKTOP"); string cmd; #if HAS_URLDISPATCHER @@ -263,7 +264,7 @@ public class IndicatorSound.Service: Object { if (env == "xubuntu" || env == "xfce" || env == "ubuntustudio") cmd = "pavucontrol"; - else if (env == "mate") + else if (env == "mate" || xdg_desktop == "MATE") cmd = "mate-volume-control"; else if (desktop_is_unity() && Environment.find_program_in_path ("unity-control-center") != null) cmd = "unity-control-center sound"; |