在尝试为使用葡萄酒的应用程序创建桌面快捷方式时,我发现了以下错误:
Failed to execute child process "/home/fiver/.wine/drive_c/Program" (No such file or directory)我遵守了jaypeeonline.net的所有指令
发布于 2019-11-20 03:02:04
我创建了一个脚本,通过输入./wine-create-shortcut paht/to/application.exe为GNOME应用程序菜单添加一个快捷方式。
您可以找到更多的信息,这里。
发布于 2014-03-22 13:41:54
您必须使用反斜杠(\)转义空格。尝试指定如下命令:
".../Program\ Files/Adobe/Adobe\ Photoshop\ CS2/..."注意空格之前的\。
发布于 2020-03-19 21:08:45
因为我不能评论,所以我必须在此另行回答。-)非常感谢用户的“精确”。他或她提到的解决方案在Kubuntu18.04和Wine5.0为我工作,但我不得不在路径名上添加两个反斜杠(而不仅仅是一个)。
基于上述示例,如下所示:
Exec=wine "C:\\Program Files\\Internet Explorer\\iexplore.exe"我不知道为什么会这样,也许是因为我的程序路径比较复杂:
Exec=wine "C:\\Program Files\\Steuer St.Gallen 2019 nP\\Steuer St.Gallen 2019 nP.exe"关于这个话题的一点更新。最后,我能够添加正确的图标到快捷方式。(它在相应程序位置的隐藏文件夹中可用。)从可执行文件中提取图标也有效,但我无法使用单独的*.ico文件作为图标源。
但是,-这里遵循我手动生成的和完美工作的葡萄酒快捷方式的全部内容。
[Desktop Entry]
Name=Steuer St.Gallen 2019 nP
Exec=env WINEPREFIX="/home/franz/.wine" wine "C:\\Program Files\\Steuer St.Gallen 2019 nP\\Steuer St.Gallen 2019 nP.exe"
Type=Application
StartupNotify=true
Icon=/home/franz/.wine/dosdevices/c:/Program Files/Steuer St.Gallen 2019 nP/.install4j/i4j_extf_9_1bhpfkc_1iu21cz.png
Path=/home/franz/.wine/dosdevices/c:/Program Files/Steuer St.Gallen 2019 nP
StartupWMClass=Steuer St.Gallen 2019 nP.exe这主要与自动建立的快捷方式相对应:
[Desktop Entry]
Name=Microsoft PowerPoint Viewer
Exec=env WINEPREFIX="/home/franz/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/franz/.wine/dosdevices/c:/users/franz/Start\\ Menu/Programs/Microsoft\\ PowerPoint\\ Viewer\\ .lnk
Type=Application
StartupNotify=true
Comment=Mit Microsoft PowerPoint erstellte Präsentationen anzeigen.
Icon=976E_ppvwicon.0
StartupWMClass=pptview.exe在使文件可执行后,自动添加了其他几个参数(大部分没有值)。因为它们没有功能,所以我再次手动删除它们。
Comment[de_DE]=
Comment=
GenericName[de_DE]=
GenericName=
MimeType=
Terminal=false
TerminalOptions=
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=https://askubuntu.com/questions/437555
复制相似问题