Skip to content

Commit

Permalink
added $@ parameter in the Gamescope wrapper script
Browse files Browse the repository at this point in the history
The generated Gamescope wrapper script should pass all its arguments to the target application. Verified fix with and w/o MangoHud.
  • Loading branch information
C0LDfinch authored and mirkobrombin committed Dec 2, 2024
1 parent e93cd18 commit f5f2f88
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bottles/backend/wine/winecommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,9 @@ def get_cmd(

# Create temporary sh script in /tmp where Gamescope will execute it
file = [f"#!/usr/bin/env sh\n"]
file.append(f"{command} $@")
if mangohud_available and params.mangohud:
file.append(f"{command}&\nmangoapp")
else:
file.append(command)

file.append(f" &\nmangoapp")
with open(gamescope_run, "w") as f:
f.write("".join(file))

Expand Down

0 comments on commit f5f2f88

Please sign in to comment.