remove setting XDG_CURRENT_DESKTOP as dafault -wm value; allow capitalized Hyprland value

This commit is contained in:
piotr
2023-11-21 14:26:04 +01:00
parent 33e0032725
commit dac55cdd0d
2 changed files with 4 additions and 4 deletions

View File

@@ -585,7 +585,7 @@ func launch(command string, terminal bool) {
cmd = exec.Command(prefixCommand, args...)
} else if *wm == "sway" {
cmd = exec.Command("swaymsg", "exec", strings.Join(elements, " "))
} else if *wm == "hyprland" {
} else if *wm == "hyprland" || *wm == "Hyprland" {
cmd = exec.Command("hyprctl", "dispatch", "exec", strings.Join(elements, " "))
}