aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-11-11 08:59:10 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-11-11 09:05:26 +0100
commit7fe2596dc5b0bb0f913e8443eb0e378bdbec8092 (patch)
tree2226457fae5a636ded2b2676d4908da64fac0943 /src/service.vala
parent29180e8d44fdb0231819cf59c4a5c749f03c8132 (diff)
downloadayatana-indicator-sound-7fe2596dc5b0bb0f913e8443eb0e378bdbec8092.tar.gz
ayatana-indicator-sound-7fe2596dc5b0bb0f913e8443eb0e378bdbec8092.tar.bz2
ayatana-indicator-sound-7fe2596dc5b0bb0f913e8443eb0e378bdbec8092.zip
src/service.vala: Check if mate-volume-control exists before executing it.
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.vala b/src/service.vala
index d5eacdf..8acdc39 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -264,7 +264,7 @@ public class IndicatorSound.Service: Object {
if (env == "xubuntu" || env == "xfce" || env == "ubuntustudio")
cmd = "pavucontrol";
- else if (env == "mate" || xdg_desktop == "MATE")
+ else if ((env == "mate" || xdg_desktop == "MATE") && Environment.find_program_in_path ("mate-volume-control") != null)
cmd = "mate-volume-control";
else if (desktop_is_unity() && Environment.find_program_in_path ("unity-control-center") != null)
cmd = "unity-control-center sound";