Skip to content

Commit c1664e5

Browse files
committed
Add SteamOS detection to error dialog
1 parent 2c71e09 commit c1664e5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/protontricks/cli/util.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from ..gui import show_text_dialog
1313
from ..flatpak import is_flatpak_sandbox
14-
from ..util import is_steam_deck
14+
from ..util import is_steam_deck, is_steamos
1515
from .. import __version__
1616

1717

@@ -138,6 +138,10 @@ def exit_with_error(error, desktop=False):
138138
with contextlib.suppress(Exception):
139139
is_steam_deck_ = is_steam_deck()
140140

141+
is_steamos_ = None
142+
with contextlib.suppress(Exception):
143+
is_steamos_ = is_steamos()
144+
141145
# Display an error dialog containing the message
142146
message = "".join([
143147
"Protontricks was closed due to the following error:\n\n",
@@ -147,7 +151,8 @@ def exit_with_error(error, desktop=False):
147151
"Environment:\n\n",
148152
f"Protontricks version: {__version__}\n",
149153
f"Is Flatpak sandbox: {is_flatpak_sandbox_}\n",
150-
f"Is Steam Deck: {is_steam_deck_}\n\n",
154+
f"Is Steam Deck: {is_steam_deck_}\n",
155+
f"Is SteamOS 3+: {is_steamos_}\n\n",
151156
"Log messages:\n\n",
152157
f"{log_messages}"
153158
])

0 commit comments

Comments
 (0)