diff options
| author | Robert Ancell <robert.ancell@canonical.com> | 2014-01-10 12:13:24 +1300 |
|---|---|---|
| committer | Robert Ancell <robert.ancell@canonical.com> | 2014-01-10 12:13:24 +1300 |
| commit | dce18d4a609242dddd29ac05955ad79ae803d49f (patch) | |
| tree | 65b37cf78b95c517f869de0acd5db80360b55da8 /src | |
| parent | 7f23146bc08362f33d1a2d6aa313f29035066766 (diff) | |
| download | ayatana-indicator-bluetooth-dce18d4a609242dddd29ac05955ad79ae803d49f.tar.gz ayatana-indicator-bluetooth-dce18d4a609242dddd29ac05955ad79ae803d49f.tar.bz2 ayatana-indicator-bluetooth-dce18d4a609242dddd29ac05955ad79ae803d49f.zip | |
Use unity-control-center if it is available
Diffstat (limited to 'src')
| -rw-r--r-- | src/desktop.vala | 5 |
1 files changed, 4 insertions, 1 deletions
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) |
