From 1762c40b0f1b0a12726974021497e3f29cb65f39 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Fri, 10 Jan 2014 15:23:04 +1300 Subject: Use unity-control-center if it is available --- debian/control | 2 +- src/service.vala | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index ab0c0f1..3ab6ecf 100644 --- a/debian/control +++ b/debian/control @@ -31,7 +31,7 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, pulseaudio, -Recommends: gnome-control-center | ubuntu-system-settings, +Recommends: gnome-control-center | unity-control-center | ubuntu-system-settings, Description: System sound indicator. System sound indicator which provides easy control of the PulseAudio sound daemon. 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); -- cgit v1.2.3