我不太确定这是不是正确的地方张贴,但我有流行!_OS 22.04 LTS在我的电脑上,我试着玩怀旧游戏“变形金刚:赛伯创的堕落”。我找到了一个windows副本,而且由于我是linux中的一个菜鸟,我可能遗漏了一些关于这个问题的可怕的答案。当我进入航站楼时:
wine "/home/danielgrant/.local/share/applications/wine/Programs/Activision/Transformers Fall of Cybertron/Transformers Fall of Cybertron.desktop"我得到以下错误:
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
0054:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\nsiproxy": c0000003
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
0024:err:process:exec_process L"Z:\\home\\danielgrant\\.local\\share\\applications\\wine\\Programs\\Activision\\Transformers Fall of Cybertron\\Transformers Fall of Cybertron.desktop" not supported on this system我甚至不知道从哪里开始,所以我会感激一切可能的帮助。
发布于 2022-07-13 09:15:17
Desktop文件是由图形桌面环境启动的,您不能将它们作为应用程序启动(这就是您要做的)。
您可以通过运行cat "/home/danielgrant/.local/share/applications/wine/Programs/Activision/Transformers Fall of Cybertron/Transformers Fall of Cybertron.desktop"来检查文件,然后在Exec=之后使用字符串来启动它。它还可能包含Path=变量,所以最好先将cd "directory"放入其中。
另外,请检查此答案如何从控制台启动*desktop文件:https://askubuntu.com/questions/5172/running-a-desktop-file-in-the-terminal
发布于 2022-07-16 14:40:26
您可以通过使用桌面文件启动葡萄酒来运行程序,而不是通过使用program启动桌面文件来运行程序。
编辑桌面文件,将Type条目更改为Application,并将Exec条目更改为wine <path to exe file>。
例如,这里有一个工作桌面文件,用于在我的系统上启动一个老电子游戏的Windows .
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=Asteroids
Comment=
Exec=wine '/home/David/C/Program Files (x86)/Atari/The 80 Classic Games/Asteroids.exe'
Icon=/home/David/System/Icons/Local Shared Icons/hicolor/48x48/apps/54DF_Menu.0.png
Path=
Terminal=false
StartupNotify=falsehttps://unix.stackexchange.com/questions/709670
复制相似问题