summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <alan@eth0.org.uk>2012-06-26 17:15:04 +0100
committerGravatar Alan Fitton <alan@eth0.org.uk>2012-06-26 17:15:04 +0100
commit9094eb1fe7d6358db02f6316b5c3c0b49070bcce (patch)
tree15622f330e72ca8bf6afbe8d3d8db4a274ae5579 /src/util.c
parent14bc1b2a0ef89e7ad8c4878108ccbe3665d32096 (diff)
try to only use libappindicator if we're running in unity
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 6aa1d43..45d5181 100644
--- a/src/util.c
+++ b/src/util.c
@@ -621,4 +621,8 @@ gchar *trg_win32_support_path(gchar *file) {
g_free(moddir);
return path;
}
-#endif \ No newline at end of file
+#endif
+
+gboolean is_unity() {
+ return g_strcmp0(g_getenv("XDG_CURRENT_DESKTOP"), "Unity") == 0;
+}