fix #23
This commit is contained in:
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
4
main.go
4
main.go
@@ -101,7 +101,9 @@ var (
|
|||||||
|
|
||||||
func defaultStringIfBlank(s, fallback string) string {
|
func defaultStringIfBlank(s, fallback string) string {
|
||||||
s = strings.TrimSpace(s)
|
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 fallback
|
||||||
}
|
}
|
||||||
return s
|
return s
|
||||||
|
|||||||
2
tools.go
2
tools.go
@@ -367,7 +367,7 @@ func parseDesktopFiles(desktopFiles []string) string {
|
|||||||
if entry.NoDisplay {
|
if entry.NoDisplay {
|
||||||
hidden++
|
hidden++
|
||||||
// We still need hidden entries, so `continue` is disallowed here
|
// We still need hidden entries, so `continue` is disallowed here
|
||||||
// Fixes #22 introduced in #19
|
// Fixes introduced in #19
|
||||||
}
|
}
|
||||||
|
|
||||||
id2entry[entry.DesktopID] = entry
|
id2entry[entry.DesktopID] = entry
|
||||||
|
|||||||
Reference in New Issue
Block a user