1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/X11/xpra/fix-41106.patch

16 lines
634 B
Diff
Raw Normal View History

2020-05-17 15:32:41 +01:00
diff --git a/xpra/server/server_util.py b/xpra/server/server_util.py
2020-05-16 20:19:00 +01:00
index dd7c7c1..066b9ff 100644
2020-05-17 15:32:41 +01:00
--- a/xpra/server/server_util.py
+++ b/xpra/server/server_util.py
2020-05-16 20:19:00 +01:00
@@ -37,6 +37,10 @@ def sh_quotemeta(s):
return b"'" + s.replace(b"'", b"'\\''") + b"'"
def xpra_runner_shell_script(xpra_file, starting_dir, socket_dir):
+ # 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")
script = []
script.append(b"#!/bin/sh\n")
for var, value in os.environb.items():