This commit is contained in:
piotr
2021-09-07 02:47:17 +02:00
parent 9d50258042
commit f12be46583
3 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@@ -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

View File

@@ -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