Ensure XDG_RUNTIME_DIR is available to neko
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user