aboutsummaryrefslogtreecommitdiff
path: root/src/desktop.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.vala')
-rw-r--r--src/desktop.vala9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/desktop.vala b/src/desktop.vala
index f576144..ea3a806 100644
--- a/src/desktop.vala
+++ b/src/desktop.vala
@@ -64,9 +64,12 @@ class Desktop: Profile
build_menu ();
// know when to show the indicator & when to hide it
- settings.changed["visible"].connect (()=> update_visibility());
- bluetooth.notify["supported"].connect (() => update_visibility());
- update_visibility ();
+ if (Environment.get_variable("MIR_SOCKET") != null)
+ {
+ settings.changed["visible"].connect (()=> update_visibility());
+ bluetooth.notify["supported"].connect (() => update_visibility());
+ update_visibility ();
+ }
// when devices change, rebuild our device section
bluetooth.devices_changed.connect (()=> {