diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2014-01-22 17:37:20 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2014-01-22 17:37:20 +0000 |
commit | b52c2b786f3c8cba4a696fd3b018a2465f51cad8 (patch) | |
tree | bfbe9e04b1559df640a7d8bedfd253d54cff44d4 /src | |
parent | f7ab50b8a75ae98e8ec2f8fb4a1da0f66d976ef6 (diff) | |
parent | 09cf092387e47593d610f4177adc19ceafa5972b (diff) | |
download | ayatana-indicator-sound-b52c2b786f3c8cba4a696fd3b018a2465f51cad8.tar.gz ayatana-indicator-sound-b52c2b786f3c8cba4a696fd3b018a2465f51cad8.tar.bz2 ayatana-indicator-sound-b52c2b786f3c8cba4a696fd3b018a2465f51cad8.zip |
Use unity-control-center if it is available. Fixes: https://bugs.launchpad.net/bugs/1257505.
Approved by Ted Gould, PS Jenkins bot.
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 f228746..f7d86bb 100644 --- a/src/service.vala +++ b/src/service.vala @@ -124,7 +124,12 @@ public class IndicatorSound.Service { if (env == "xubuntu" || env == "ubuntustudio") cmd = "pavucontrol"; else - cmd = "gnome-control-center sound"; + { + 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"; + } try { Process.spawn_command_line_async (cmd); |