【前提】你在Ubuntu中安装了wine

【效果展示】右键在打开方式中显示用wine运行

以bilibli安装包为例,在B站安装包右键选择打开方式
在这里插入图片描述
省去了在终端中输入wine命令
在这里插入图片描述

【步骤】如何添加右键wine运行exe程序文件

新建一个文本文档
其中填入以下内容

[Desktop Entry]
Type=Application
Name=用Wine运行
Exec=wine %f
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;
NoDisplay=true
StartupNotify=true

在这里插入图片描述随后将这个文本文档改名为:Wine运行.desktop
将文件Wine运行.desktop移动到/usr/share/applications/下

sudo mv Wine运行.desktop /usr/share/applications/

在这里插入图片描述

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐