2024-10-04 16:56:33 +00:00
|
|
|
diff --git a/xpra/server/util.py b/xpra/server/util.py
|
|
|
|
index 401a9fb959..678e2ce745 100644
|
|
|
|
--- a/xpra/server/util.py
|
|
|
|
+++ b/xpra/server/util.py
|
|
|
|
@@ -175,6 +175,10 @@ def xpra_env_shell_script(socket_dir: str, env: dict[str, str]) -> str:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
|
|
|
|
def xpra_runner_shell_script(xpra_file: str, starting_dir: str) -> str:
|
2020-06-18 07:06:33 +00:00
|
|
|
+ # Nixpkgs contortion:
|
|
|
|
+ # xpra_file points to a shell wrapper, not to the python script.
|
|
|
|
+ dirname, basename = os.path.split(xpra_file)
|
|
|
|
+ xpra_file = os.path.join(dirname, "."+basename+"-wrapped")
|
2022-01-25 03:21:06 +00:00
|
|
|
# We ignore failures in cd'ing, b/c it's entirely possible that we were
|
|
|
|
# started from some temporary directory and all paths are absolute.
|
2024-07-27 06:49:29 +00:00
|
|
|
qdir = sh_quotemeta(starting_dir)
|