From dce18d4a609242dddd29ac05955ad79ae803d49f Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Fri, 10 Jan 2014 12:13:24 +1300 Subject: Use unity-control-center if it is available --- src/desktop.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3