From de34f84e04da98a0238caa025396425358f1de07 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Fri, 23 May 2025 18:32:29 +0300 Subject: [PATCH] added desktop.list for programms in prefix --- winehelper | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/winehelper b/winehelper index 3ad5eb4..3df630c 100755 --- a/winehelper +++ b/winehelper @@ -388,7 +388,7 @@ create_desktop () { [[ ! -f "$icon_file" ]] && icon_file=wine - # Создаем .desktop файл + # создаем .desktop файл { echo "[Desktop Entry]" echo "Name=$name_desktop" @@ -403,7 +403,14 @@ create_desktop () { cp -f "$USER_WORK_PATH/$desktop_filename.desktop" "$WH_MENU_DIR/" - # Создаем файл категории для меню + + # добавляем информацию о приложении в "$WINEPREFIX/desktop.list" + if grep -qe "^${name_desktop}=" "$WINEPREFIX/desktop.list" + then sed -i "/^$name_desktop=/d" "$WINEPREFIX/desktop.list" + fi + echo "$name_desktop=${exe_file//$WINEPREFIX/}" >> "$WINEPREFIX/desktop.list" + + # создаем файл категории для меню create_new_dir "$HOME/.local/share/desktop-directories" if [[ ! -f "$WH_MENU_CATEGORY" ]] ; then cat > "$WH_MENU_CATEGORY" <