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 b56e4d3 commit a98db9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ int32_t get_desktop_env(void) {
return DESKTOP_ENV_GNOME3;
} 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 && *session_version > '0') {
if (*session_version <= '4')
return DESKTOP_ENV_KDE4;
return DESKTOP_ENV_KDE5;
}
}
}
Expand Down

0 comments on commit a98db9f

Please sign in to comment.