aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-01-22 10:29:37 +1300
committerRobert Ancell <robert.ancell@canonical.com>2014-01-22 10:29:37 +1300
commitd36408225a587dd67e8a40719028e264bacad475 (patch)
treee8552e34bdc033f6ca96c0039e36028868d5f094 /src
parent722d6102890cdee40976babdcbd3f5f8d6787a3e (diff)
downloadayatana-indicator-bluetooth-d36408225a587dd67e8a40719028e264bacad475.tar.gz
ayatana-indicator-bluetooth-d36408225a587dd67e8a40719028e264bacad475.tar.bz2
ayatana-indicator-bluetooth-d36408225a587dd67e8a40719028e264bacad475.zip
Only run unity-control-center under unity
Diffstat (limited to 'src')
-rw-r--r--src/desktop.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop.vala b/src/desktop.vala
index 26b86f5..a6cd433 100644
--- a/src/desktop.vala
+++ b/src/desktop.vala
@@ -211,7 +211,7 @@ class Desktop: Profile
void show_settings (string panel)
{
- if (Environment.find_program_in_path ("unity-control-center") != null)
+ 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);