diff options
Diffstat (limited to 'pkgs/by-name/xp/xpra/fix-41106.patch')
| -rw-r--r-- | pkgs/by-name/xp/xpra/fix-41106.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/by-name/xp/xpra/fix-41106.patch b/pkgs/by-name/xp/xpra/fix-41106.patch new file mode 100644 index 000000000000..84061106323c --- /dev/null +++ b/pkgs/by-name/xp/xpra/fix-41106.patch @@ -0,0 +1,15 @@ +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: + + + def xpra_runner_shell_script(xpra_file: str, starting_dir: str) -> str: ++ # 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") + # 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. + qdir = sh_quotemeta(starting_dir) |
