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 12f3c46..ea66dca 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -124,7 +124,7 @@ public class IndicatorSound.Service {
cmd = "pavucontrol";
else
{
- if (Environment.find_program_in_path ("unity-control-center") != null)
+ if (Environment.get_variable ("XDG_CURRENT_DESKTOP") == "Unity" && Environment.find_program_in_path ("unity-control-center") != null)
cmd = "unity-control-center sound";
else
cmd = "gnome-control-center sound";