diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2015-09-15 14:15:36 +0000 |
---|---|---|
committer | CI Train Bot <ci-train-bot@canonical.com> | 2015-09-15 14:15:36 +0000 |
commit | 3a835ef0e09d3565542762dd6c5495c8c2a80012 (patch) | |
tree | 9d57a65622592dad3cde042ebb48c1753d2a6452 /src | |
parent | 3d63adec693c8d668068a8dc385f084810aede6f (diff) | |
parent | 8e6baf4788f8aa6afb73a3e4c6d5174500ce62c3 (diff) | |
download | ayatana-indicator-bluetooth-3a835ef0e09d3565542762dd6c5495c8c2a80012.tar.gz ayatana-indicator-bluetooth-3a835ef0e09d3565542762dd6c5495c8c2a80012.tar.bz2 ayatana-indicator-bluetooth-3a835ef0e09d3565542762dd6c5495c8c2a80012.zip |
under unity8 start system-settings instead unity-control-center Fixes: #1489490
Approved by: Charles Kerr, PS Jenkins bot
Diffstat (limited to 'src')
-rw-r--r-- | src/desktop.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/desktop.vala b/src/desktop.vala index d258a9a..0542f1e 100644 --- a/src/desktop.vala +++ b/src/desktop.vala @@ -208,7 +208,9 @@ class Desktop: Profile void show_settings (string panel) { - if (Environment.get_variable ("XDG_CURRENT_DESKTOP") == "Unity" && Environment.find_program_in_path ("unity-control-center") != null) + if (Environment.get_variable ("MIR_SOCKET") != null) + UrlDispatch.send ("settings:///system/bluetooth"); + else 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); |