diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2014-01-10 15:23:04 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2014-01-10 15:23:04 +1300 |
commit | 1762c40b0f1b0a12726974021497e3f29cb65f39 (patch) | |
tree | 0ca64c62f5e28e59fa98253799d4aafce963415e /src | |
parent | a7bca00dc9644e3df9c0dc07e157e13a79a3235d (diff) | |
download | ayatana-indicator-sound-1762c40b0f1b0a12726974021497e3f29cb65f39.tar.gz ayatana-indicator-sound-1762c40b0f1b0a12726974021497e3f29cb65f39.tar.bz2 ayatana-indicator-sound-1762c40b0f1b0a12726974021497e3f29cb65f39.zip |
Use unity-control-center if it is available
Diffstat (limited to 'src')
-rw-r--r-- | src/service.vala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/service.vala b/src/service.vala index 25a7b18..12f3c46 100644 --- a/src/service.vala +++ b/src/service.vala @@ -123,7 +123,12 @@ public class IndicatorSound.Service { if (env == "xubuntu" || env == "ubuntustudio") cmd = "pavucontrol"; else - cmd = "gnome-control-center sound"; + { + if (Environment.find_program_in_path ("unity-control-center") != null) + cmd = "unity-control-center sound"; + else + cmd = "gnome-control-center sound"; + } try { Process.spawn_command_line_async (cmd); |