fixed GetWM
This commit is contained in:
parent
3ed2a91cbc
commit
f4bd0f0318
1 changed files with 4 additions and 1 deletions
|
@ -158,7 +158,10 @@ func GetShell() string {
|
||||||
return os.Getenv("SHELL")
|
return os.Getenv("SHELL")
|
||||||
}
|
}
|
||||||
func GetWM() string {
|
func GetWM() string {
|
||||||
return os.Getenv("XDG_CURRENT_DESKTOP")
|
cmd := exec.Command("wmctrl", "-m")
|
||||||
|
shell, _ := cmd.Output()
|
||||||
|
line := strings.Split(string(shell), "\n")[0]
|
||||||
|
return strings.ReplaceAll(line, "Name: ", "")
|
||||||
}
|
}
|
||||||
func getPackages() {
|
func getPackages() {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue