diff options
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); |