Ensure XDG_RUNTIME_DIR is available to neko

This commit is contained in:
Josh.5
2022-09-17 20:21:19 +12:00
committed by Josh Sunnex
parent cb597e4423
commit 9bfc3568e6
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ echo "Setting umask to ${UMASK}";
umask ${UMASK}
XDG_RUNTIME_DIR=/run/user/${PUID}
export XDG_RUNTIME_DIR=/run/user/${PUID}
echo "Create the user XDG_RUNTIME_DIR path '${XDG_RUNTIME_DIR}'"
mkdir -p ${XDG_RUNTIME_DIR}
chown -R ${PUID}:${PGID} ${XDG_RUNTIME_DIR}

View File

@@ -5,7 +5,7 @@ autorestart=true
priority=30
user=%(ENV_USER)s
command=/usr/bin/neko serve --static "/var/www" --display %(ENV_DISPLAY)s --bind :%(ENV_PORT_NOVNC_WEB)s
environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s"
environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s"
stopsignal=INT
stopwaitsecs=5
stdout_logfile=/home/%(ENV_USER)s/.cache/log/neko.log