Skip to content

Commit 2dff3fd

Browse files
ProtonSettings: do try to set STEAM_COMPAT_INSTALL_PATH if the game is not installed
1 parent f805a83 commit 2dff3fd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • rare/components/tabs/settings/widgets

rare/components/tabs/settings/widgets/proton.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ def _on_tool_changed(self, index: int):
149149

150150
steam_environ = steam.get_steam_environment(steam_tool, self.compat_edit.text())
151151
library_paths = steam_environ.get('STEAM_COMPAT_LIBRARY_PATHS', '')
152-
if self.app_name != 'default':
153-
install_path = self.rcore.get_game(self.app_name).install_path
152+
if self.app_name != 'default' and (install_path := self.rcore.get_game(self.app_name).install_path):
154153
library_paths = (
155154
':'.join([library_paths, os.path.dirname(install_path)]) if library_paths else os.path.dirname(install_path)
156155
)

0 commit comments

Comments
 (0)