flakes/overlays/patches/startx.patch

14 lines
462 B
Diff
Raw Permalink Normal View History

2021-06-04 16:16:16 +07:00
diff --git a/startx.cpp b/startx.cpp
index 125c398..296b29f 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -270,7 +270,7 @@ if [ x"$enable_xauth" = x1 ] ; then
dummy=0
XCOMM create a file with auth information for the server. ':0' is a dummy.
- xserverauthfile=$HOME/.serverauth.$$
+ xserverauthfile=$XAUTHORITY
2023-08-26 12:25:17 +07:00
trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP BUS TERM
2021-06-04 16:16:16 +07:00
xauth -q -f "$xserverauthfile" << EOF
add :$dummy . $mcookie