![为 Wine 应用程序创建 .desktop 文件](https://linux22.com/image/1018521/%E4%B8%BA%20Wine%20%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E5%88%9B%E5%BB%BA%20.desktop%20%E6%96%87%E4%BB%B6.png)
我正在尝试创建一个。桌面申请。EXE文件文件,这是我做的:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=wine /opt/MyApp/MyApp.exe
Name=MyApp
Icon=/opt/MyApp/data/icons/MyApp.ico
菜单上有图标,但运行它时什么也没发生。如果我尝试从终端运行命令,它运行正常 - 但从菜单运行则不行。
答案1
以下是 ExamView Pro 的一个示例。Kubuntu 18.04.4 和 Wine 3.0.1
[Desktop Entry]
Name=ExamView Test Generator
Exec=env WINEPREFIX="/home/acer/.wine" wine-stable C:\\\\windows\\\\command\\\\start.exe /Unix /home/acer/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\\ Menu/Programs/ExamView\\ Pro\\ Test\\ Generator/ExamView\\ Test\\ Generator.lnk
Type=Application
StartupNotify=true
Icon=C274_evpro.0
StartupWMClass=evpro.exe