handle empty de

This commit is contained in:
nekohepott 2026-06-17 04:16:26 +03:00
parent 695625f4fc
commit 7d2f72e32d
No known key found for this signature in database

View File

@ -512,7 +512,11 @@ func getTerminal() string {
} }
func getDE() string { func getDE() string {
return os.Getenv("XDG_CURRENT_DESKTOP") de := os.Getenv("DESKTOP_SESSION")
if de == "" {
return "Unknown or w/o GUI"
}
return strings.TrimSpace(de)
} }
func getUptime() string { func getUptime() string {