aboutsummaryrefslogtreecommitdiff
path: root/src/desktop.vala
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-01-22 17:37:58 +0000
committerTarmac <>2014-01-22 17:37:58 +0000
commit8d511055888363c557f6efa8c16f8375004c5f11 (patch)
treee8552e34bdc033f6ca96c0039e36028868d5f094 /src/desktop.vala
parent7f23146bc08362f33d1a2d6aa313f29035066766 (diff)
parentd36408225a587dd67e8a40719028e264bacad475 (diff)
downloadayatana-indicator-bluetooth-8d511055888363c557f6efa8c16f8375004c5f11.tar.gz
ayatana-indicator-bluetooth-8d511055888363c557f6efa8c16f8375004c5f11.tar.bz2
ayatana-indicator-bluetooth-8d511055888363c557f6efa8c16f8375004c5f11.zip
Use unity-control-center if it is available. Fixes: https://bugs.launchpad.net/bugs/1257505.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'src/desktop.vala')
-rw-r--r--src/desktop.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/desktop.vala b/src/desktop.vala
index 198101a..a6cd433 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.get_variable ("XDG_CURRENT_DESKTOP") == "Unity" && 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)