From 3f728e811e2254da9cc774b1c128a91e76c0c853 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Wed, 1 Dec 2021 01:21:43 +0100 Subject: [PATCH] set vncserver Xauthority --- templates/vnc/vncserver.service.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/vnc/vncserver.service.j2 b/templates/vnc/vncserver.service.j2 index b3d0394..b5ede08 100644 --- a/templates/vnc/vncserver.service.j2 +++ b/templates/vnc/vncserver.service.j2 @@ -21,6 +21,7 @@ After=syslog.target network.target [Service] WorkingDirectory=%h Environment=DISPLAY=%i +Environment=XAUTHORITY=%h/.Xauthority ExecStart=Xtigervnc $DISPLAY {{vncserver_options|replace('\n',' ')|trim}} ExecStartPost=fish -c "while not xdpyinfo > /dev/null 2> /dev/null; sleep 0.1; end" ExecStartPost=xrandr --output VNC-0 --primary