[GB.GTK]
* BUG: Fix detection of XFCE desktop. [GB.GTK3] * BUG: Fix detection of XFCE desktop. [GB.QT4] * BUG: Fix detection of XFCE desktop. [GB.QT5] * BUG: Fix detection of XFCE desktop. git-svn-id: svn://localhost/gambas/trunk@7361 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
c24cf1406c
commit
222f066b69
1 changed files with 9 additions and 1 deletions
|
@ -44,7 +44,7 @@ static const char *calc_desktop_type()
|
|||
char *env;
|
||||
|
||||
env = getenv("KDE_FULL_SESSION");
|
||||
if (env && strcmp(env, "true") == 0)
|
||||
if (env && strcasecmp(env, "true") == 0)
|
||||
{
|
||||
env = getenv("KDE_SESSION_VERSION");
|
||||
if (env)
|
||||
|
@ -77,6 +77,14 @@ static const char *calc_desktop_type()
|
|||
if (env && *env)
|
||||
return "WINDOWMAKER";
|
||||
|
||||
env = getenv("DESKTOP_SESSION");
|
||||
if (env && strcasecmp(env, "XFCE") == 0)
|
||||
return "XFCE";
|
||||
|
||||
env = getenv("XDG_MENU_PREFIX");
|
||||
if (env && strncasecmp(env, "XFCE", 4) == 0)
|
||||
return "XFCE";
|
||||
|
||||
env = getenv("XDG_CURRENT_DESKTOP");
|
||||
if (env && *env && strlen(env) < sizeof(_desktop))
|
||||
return env;
|
||||
|
|
Loading…
Reference in a new issue