Skip to content

Commit

Permalink
Add support for KDE6.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Dec 20, 2024
1 parent 50ce0bb commit 8b2f739
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ int32_t get_desktop_env(void) {
} else if (strcasestr(current_desktop, "kde")) {
const char *session_version = getenv("KDE_SESSION_VERSION");
if (session_version) {
if (*session_version == '5')
return DESKTOP_ENV_KDE5;
return DESKTOP_ENV_KDE4;
if (*session_version > '0' && *session_version <= '4')
return DESKTOP_ENV_KDE4;
return DESKTOP_ENV_KDE5;
}
}
}
Expand Down

0 comments on commit 8b2f739

Please sign in to comment.