2023-02-02 18:25:31 +00:00
|
|
|
diff --git a/src/protontricks/data/scripts/bwrap_launcher.sh b/src/protontricks/data/scripts/bwrap_launcher.sh
|
2024-01-13 08:15:51 +00:00
|
|
|
index 922c59d..54742a4 100644
|
2023-02-02 18:25:31 +00:00
|
|
|
--- a/src/protontricks/data/scripts/bwrap_launcher.sh
|
|
|
|
+++ b/src/protontricks/data/scripts/bwrap_launcher.sh
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/bin/bash
|
2024-01-13 08:15:51 +00:00
|
|
|
+#!@bash@
|
2023-02-02 18:25:31 +00:00
|
|
|
# Helper script
|
|
|
|
set -o errexit
|
|
|
|
|
|
|
|
diff --git a/src/protontricks/data/scripts/wine_launch.sh b/src/protontricks/data/scripts/wine_launch.sh
|
2024-01-13 08:15:51 +00:00
|
|
|
index 1b0a0ce..127f13e 100644
|
2023-02-02 18:25:31 +00:00
|
|
|
--- a/src/protontricks/data/scripts/wine_launch.sh
|
|
|
|
+++ b/src/protontricks/data/scripts/wine_launch.sh
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/bin/bash
|
2024-01-13 08:15:51 +00:00
|
|
|
+#!@bash@
|
2023-02-02 18:25:31 +00:00
|
|
|
# Helper script created by Protontricks to run Wine binaries using Steam Runtime
|
|
|
|
set -o errexit
|
|
|
|
|
|
|
|
diff --git a/src/protontricks/data/scripts/wineserver_keepalive.sh b/src/protontricks/data/scripts/wineserver_keepalive.sh
|
2024-01-13 08:15:51 +00:00
|
|
|
index 8168dae..cb3e7d9 100644
|
2023-02-02 18:25:31 +00:00
|
|
|
--- a/src/protontricks/data/scripts/wineserver_keepalive.sh
|
|
|
|
+++ b/src/protontricks/data/scripts/wineserver_keepalive.sh
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/bin/bash
|
2024-01-13 08:15:51 +00:00
|
|
|
+#!@bash@
|
2023-02-02 18:25:31 +00:00
|
|
|
# A simple keepalive script that will ensure a wineserver process is kept alive
|
|
|
|
# for the duration of the Protontricks session.
|
|
|
|
# This is accomplished by launching a simple Windows batch script that will
|
2021-01-05 17:05:55 +00:00
|
|
|
diff --git a/src/protontricks/util.py b/src/protontricks/util.py
|
2024-01-13 08:15:51 +00:00
|
|
|
index 9262cd0..00b2b2f 100644
|
2021-01-05 17:05:55 +00:00
|
|
|
--- a/src/protontricks/util.py
|
|
|
|
+++ b/src/protontricks/util.py
|
2024-01-13 08:15:51 +00:00
|
|
|
@@ -99,7 +99,7 @@ def get_host_library_paths():
|
2021-05-03 20:48:10 +00:00
|
|
|
# Since that command is unavailable with newer Steam Runtime releases,
|
|
|
|
# do it ourselves here.
|
|
|
|
result = run(
|
|
|
|
- ["/sbin/ldconfig", "-XNv"],
|
2024-01-13 08:15:51 +00:00
|
|
|
+ ["@steamRun@", "/sbin/ldconfig", "-XNv"],
|
2021-05-03 20:48:10 +00:00
|
|
|
check=True, stdout=PIPE, stderr=PIPE
|
|
|
|
)
|
|
|
|
lines = result.stdout.decode("utf-8").split("\n")
|
2023-02-02 18:25:31 +00:00
|
|
|
diff --git a/tests/conftest.py b/tests/conftest.py
|
2024-01-13 08:15:51 +00:00
|
|
|
index a516437..88bf804 100644
|
2023-02-02 18:25:31 +00:00
|
|
|
--- a/tests/conftest.py
|
|
|
|
+++ b/tests/conftest.py
|
2024-01-13 08:15:51 +00:00
|
|
|
@@ -170,7 +170,7 @@ def steam_runtime_dir(steam_dir):
|
2023-02-02 18:25:31 +00:00
|
|
|
"""
|
|
|
|
(steam_dir.parent / "root" / "ubuntu12_32" / "steam-runtime").mkdir(parents=True)
|
|
|
|
(steam_dir.parent / "root" / "ubuntu12_32" / "steam-runtime" / "run.sh").write_text(
|
|
|
|
- "#!/bin/bash\n"
|
2024-01-13 08:15:51 +00:00
|
|
|
+ "#!/bin/sh\n"
|
2023-02-02 18:25:31 +00:00
|
|
|
"""if [ "$1" = "--print-steam-runtime-library-paths" ]; then\n"""
|
|
|
|
" echo 'fake_steam_runtime/lib:fake_steam_runtime/lib64'\n"
|
|
|
|
"fi"
|
2024-01-13 08:15:51 +00:00
|
|
|
@@ -764,7 +764,7 @@ def xdg_user_dir_bin(home_dir):
|
2023-02-02 18:25:31 +00:00
|
|
|
# Only mock PICTURES and DOWNLOAD; mocking everything isn't necessary
|
|
|
|
# for the tests.
|
|
|
|
(home_dir / ".local" / "bin" / "xdg-user-dir").write_text(
|
|
|
|
- '#!/bin/bash\n'
|
2024-01-13 08:15:51 +00:00
|
|
|
+ '#!/bin/sh\n'
|
2023-02-02 18:25:31 +00:00
|
|
|
'if [[ "$1" == "PICTURES" ]]; then\n'
|
|
|
|
' echo "$HOME/Pictures"\n'
|
|
|
|
'elif [[ "$1" == "DOWNLOAD" ]]; then\n'
|