Lutris 0.5.8 在 Ubuntu 20.04 上啟動時會自動中斷,在 console 底下看到錯誤訊息:
Traceback (most recent call last):
File "/usr/games/lutris", line 54, in
from lutris.gui.application import Application # pylint: disable=no-name-in-module
File "/usr/lib/python3/dist-packages/lutris/gui/application.py", line 53, in
from .lutriswindow import LutrisWindow
File "/usr/lib/python3/dist-packages/lutris/gui/lutriswindow.py", line 26, in
from lutris.gui.widgets.sidebar import LutrisSidebar
File "/usr/lib/python3/dist-packages/lutris/gui/widgets/sidebar.py", line 6, in
from lutris import platforms, runners, services
File "/usr/lib/python3/dist-packages/lutris/platforms.py", line 19, in
_init_platforms()
File "/usr/lib/python3/dist-packages/lutris/platforms.py", line 14, in _init_platforms
runner = runners.import_runner(runner_name)()
File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 229, in __init__
"default": dxvk.DXVKManager().version,
File "/usr/lib/python3/dist-packages/lutris/util/wine/dxvk.py", line 56, in version
return self.versions[0]
File "/usr/lib/python3/dist-packages/lutris/util/wine/dxvk.py", line 45, in versions
self._versions = self.load_dxvk_versions()
File "/usr/lib/python3/dist-packages/lutris/util/wine/dxvk.py", line 65, in load_dxvk_versions
with open(versions_path, "r") as dxvk_version_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/zeroplex/.local/share/lutris/runtime/dxvk/dxvk_versions.json
在 reddit 上面看到有人遇到同樣情況,似乎把設定檔塞到正確位置即可:
$ mkdir -p /home/zeroplex/.local/share/lutris/runtime/dxvk/
$ wget https://cdn.discordapp.com/attachments/538903130704838656/796102070825779250/dxvk_versions.json
$ mv dxvk_versions.json /home/zeroplex/.local/share/lutris/runtime/dxvk/