aboutsummaryrefslogtreecommitdiff
path: root/src/backend-dbus/actions.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-01-22 10:31:50 +1300
committerRobert Ancell <robert.ancell@canonical.com>2014-01-22 10:31:50 +1300
commit610119bccb3d0db6f2c5920ad25c9736032fe477 (patch)
treed12035a557aa1289e9fce0cb81aa0972de8e0709 /src/backend-dbus/actions.c
parentc4e730f6507683b9e12de25c13a53b688a946422 (diff)
downloadayatana-indicator-session-610119bccb3d0db6f2c5920ad25c9736032fe477.tar.gz
ayatana-indicator-session-610119bccb3d0db6f2c5920ad25c9736032fe477.tar.bz2
ayatana-indicator-session-610119bccb3d0db6f2c5920ad25c9736032fe477.zip
Only run unity-control-center under unity
Diffstat (limited to 'src/backend-dbus/actions.c')
-rw-r--r--src/backend-dbus/actions.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c
index 0369755..b1fa8ac 100644
--- a/src/backend-dbus/actions.c
+++ b/src/backend-dbus/actions.c
@@ -717,6 +717,9 @@ have_unity_control_center (void)
gchar *path;
gboolean have_ucc;
+ if (g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity") != 0)
+ return FALSE;
+
path = g_find_program_in_path ("unity-control-center");
have_ucc = path != NULL;
g_free (path);