Skip to content

Commit

Permalink
Splash window fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Faugus authored Dec 8, 2024
1 parent fd9139d commit e55bc7a
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions faugus-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,17 @@ def start_process(self, command):
self.set_ld_preload()
self.message = f'LD_PRELOAD={self.ld_preload} {self.message}'

for part in self.message.split():
if part.startswith("GAMEID="):
game_id = part.split("=")[1]
if "umu" not in game_id:
self.message = f'PROTONFIXES_DISABLE=1 {self.message}'
break

print(self.message)

self.components_run()
if "UMU_NO_PROTON" not in self.message:
self.components_run()
self.process = subprocess.Popen(["/bin/bash", "-c", f"{discrete_gpu} {eac_dir} {be_dir} {self.message}"], stdout=subprocess.PIPE,
stderr=subprocess.PIPE, text=True)

Expand Down Expand Up @@ -234,7 +242,10 @@ def show_warning_dialog(self):
if protonpath == "Using UMU-Proton":
protonpath = "UMU-Proton Latest"
if not protonpath:
protonpath = "Using UMU-Proton Latest"
if "UMU_NO_PROTON" in self.message:
protonpath = "Linux Native"
else:
protonpath = "Using UMU-Proton Latest"
else:
protonpath = f"Using {protonpath}"
print(protonpath)
Expand Down Expand Up @@ -322,7 +333,7 @@ def check_game_output(self, clean_line):
self.label2.set_text("Steam Runtime is up to date")


if "ProtonFixes" in clean_line:
if "fsync: up and running." in clean_line or "SingleInstance" in clean_line:
GLib.timeout_add_seconds(0, self.close_warning_dialog)

def append_to_text_view(self, clean_line):
Expand Down

0 comments on commit e55bc7a

Please sign in to comment.