check_installed_programs: updated run list

This commit is contained in:
Mikhail Tergoev
2025-07-08 10:49:52 +03:00
parent 10707bd010
commit 7c41d656aa
3 changed files with 6 additions and 7 deletions

View File

@ -22,7 +22,7 @@ _winehelper_completions() {
return 0
;;
run|installed)
local installed=$(grep -h "Exec=env" ~/.local/share/winehelper/*.desktop 2>/dev/null | awk -F'/' '{print $NF}' | awk -F'"' '{print $1}')
local installed=$(ls -1 ~/.local/share/winehelper/ | grep ".desktop" | sed 's/.desktop//')
COMPREPLY=( $(compgen -W "${installed}" -- "${cur}") )
return 0
;;