diff options
author | Alan Fitton <alan@eth0.org.uk> | 2012-06-26 17:15:04 +0100 |
---|---|---|
committer | Alan Fitton <alan@eth0.org.uk> | 2012-06-26 17:15:04 +0100 |
commit | 9094eb1fe7d6358db02f6316b5c3c0b49070bcce (patch) | |
tree | 15622f330e72ca8bf6afbe8d3d8db4a274ae5579 /src/util.c | |
parent | 14bc1b2a0ef89e7ad8c4878108ccbe3665d32096 (diff) |
try to only use libappindicator if we're running in unity
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; +} |