Disable tray when using Unity

This commit is contained in:
TingPing committed 2013-03-25 02:41:13 -04:00
1 parent 1c929cd694
commit e9a3528bbd
5 files changed
+43 -5

No files matched your search

+11
View File
@@ -1877,6 +1877,17 @@ hextray_mode ()
#endif
}
int
unity_mode ()
{
#ifdef G_OS_UNIX
const char *env = g_getenv("XDG_CURRENT_DESKTOP");
if (env && strcmp (env, "Unity") == 0)
return 1;
#endif
return 0;
}
/* Routine for listing subfolders of a given folder. ALWAYS free correctly after use, e.g.
void display_list (GSList *list)
{