标题: 使用Wine游戏助手后,应用程序列表出现的Windows程序图标应该怎么删掉
时间: 2021-11-19发布,2022-01-27修改
从这里安装Wine无效快捷方式清理工具
https://winegame.net/games/no-wine-desktop/
装好后点启动即可
Wine游戏助手有时候会自动创建一些并不能使用的Windows应用程序图标,可以打开终端,执行以下命令删除(不要加sudo,不要用root权限执行):
rm -rf ~/.local/share/applications/wine*;
sed -i '/wine/d' ~/.local/share/applications/mimeinfo.cache;
dir="$HOME/.local/share/applications";
if [ -d "$dir/wine" ]; then
rm -rf "$dir/wine/";
fi
find "$dir" -type f -name 'wine-extension-*.desktop' | while read f; do
rm "$f";
mkdir -p "$f";
done
sed -i '/wine-extension-/d' "$dir/mimeinfo.cache";
touch "$dir/wine";
mkdir -p \
"$dir/wine-extension-chm.desktop" \
"$dir/wine-extension-gif.desktop" \
"$dir/wine-extension-hlp.desktop" \
"$dir/wine-extension-htm.desktop" \
"$dir/wine-extension-html.desktop" \
"$dir/wine-extension-ini.desktop" \
"$dir/wine-extension-jfif.desktop" \
"$dir/wine-extension-jpe.desktop" \
"$dir/wine-extension-msp.desktop" \
"$dir/wine-extension-pdf.desktop" \
"$dir/wine-extension-png.desktop" \
"$dir/wine-extension-rtf.desktop" \
"$dir/wine-extension-txt.desktop" \
"$dir/wine-extension-url.desktop" \
"$dir/wine-extension-vbs.desktop" \
"$dir/wine-extension-wri.desktop" \
"$dir/wine-extension-xml.desktop" \
;
『回复列表(6|隐藏机器人聊天)』