From 610119bccb3d0db6f2c5920ad25c9736032fe477 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Wed, 22 Jan 2014 10:31:50 +1300 Subject: Only run unity-control-center under unity --- src/backend-dbus/actions.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/backend-dbus/actions.c') 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); -- cgit v1.2.3