aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-01-22 10:32:09 +1300
committerRobert Ancell <robert.ancell@canonical.com>2014-01-22 10:32:09 +1300
commit09cf092387e47593d610f4177adc19ceafa5972b (patch)
tree8d5276ca2c0cb2ac51ca37a70c0027a9010fa232 /src
parentd7981a4137aa40891f509b06347941467048031a (diff)
downloadayatana-indicator-sound-09cf092387e47593d610f4177adc19ceafa5972b.tar.gz
ayatana-indicator-sound-09cf092387e47593d610f4177adc19ceafa5972b.tar.bz2
ayatana-indicator-sound-09cf092387e47593d610f4177adc19ceafa5972b.zip
Only run unity-control-center under unity
Diffstat (limited to 'src')
-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";