diff --git a/bin/nwg-drawer b/bin/nwg-drawer index b3cab7b..6d5ccee 100755 Binary files a/bin/nwg-drawer and b/bin/nwg-drawer differ diff --git a/main.go b/main.go index 088a2bf..f981dbb 100644 --- a/main.go +++ b/main.go @@ -101,7 +101,9 @@ var ( func defaultStringIfBlank(s, fallback string) string { s = strings.TrimSpace(s) - if s == "" { + // os.Getenv("TERM") returns "linux" instead of empty string, if program has been started + // from a key binding defined in the config file. See #23. + if s == "" || s == "linux" { return fallback } return s diff --git a/tools.go b/tools.go index c39b855..7726356 100644 --- a/tools.go +++ b/tools.go @@ -367,7 +367,7 @@ func parseDesktopFiles(desktopFiles []string) string { if entry.NoDisplay { hidden++ // We still need hidden entries, so `continue` is disallowed here - // Fixes #22 introduced in #19 + // Fixes introduced in #19 } id2entry[entry.DesktopID] = entry