From f195dbb5911a35af25cab8bcbedaa3ae057a63b3 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Fri, 26 Nov 2021 02:39:10 +0100 Subject: [PATCH] import env variables on session start --- 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 e58e82f..b3d0394 100644 --- a/templates/vnc/vncserver.service.j2 +++ b/templates/vnc/vncserver.service.j2 @@ -24,6 +24,7 @@ Environment=DISPLAY=%i 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 +ExecStartPost=systemctl --user import-environment DISPLAY XAUTHORITY ExecStartPost=systemctl --user start xsession.target [Install]