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