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

@ -101,9 +101,7 @@ _get_list_for_install () {
_get_installed_list () {
installed=(
${(f)"$(grep -h 'Exec=env' ~/.local/share/winehelper/*.desktop 2>/dev/null |
awk -F'/' '{print $NF}' |
awk -F'"' '{print $1}')"}
${(f)"$(ls -1 ~/.local/share/winehelper/ | grep ".desktop" | sed 's/.desktop//')"}
)
if ((! ${#installed[@]} == 0 )); then