aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/control2
-rw-r--r--src/desktop.vala5
2 files changed, 5 insertions, 2 deletions
diff --git a/debian/control b/debian/control
index 4a9d70e..8d09e6e 100644
--- a/debian/control
+++ b/debian/control
@@ -22,7 +22,7 @@ Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends},
bluez (>= 4.36),
- gnome-control-center | ubuntu-system-settings,
+ gnome-control-center | unity-control-center | ubuntu-system-settings,
gnome-bluetooth | ubuntu-system-settings,
Replaces: gnome-bluetooth (<< 3.6.1-0ubuntu2)
Breaks: gnome-bluetooth (<< 3.6.1-0ubuntu2)
diff --git a/src/desktop.vala b/src/desktop.vala
index 198101a..26b86f5 100644
--- a/src/desktop.vala
+++ b/src/desktop.vala
@@ -211,7 +211,10 @@ class Desktop: Profile
void show_settings (string panel)
{
- spawn_command_line_async ("gnome-control-center " + panel);
+ if (Environment.find_program_in_path ("unity-control-center") != null)
+ spawn_command_line_async ("unity-control-center " + panel);
+ else
+ spawn_command_line_async ("gnome-control-center " + panel);
}
Action create_discoverable_action (Bluetooth bluetooth)