aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/desktop.vala4
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);