diff --git a/entrypoint.sh b/entrypoint.sh index 1b58ebe..31bb6fe 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -94,9 +94,9 @@ export XDG_SESSION_ID="${DISPLAY#*:}" export QT_LOGGING_RULES='*.debug=false;qt.qpa.*=false' if [ -n "$(nvidia-smi --query-gpu=uuid --format=csv,noheader | head -n1)" ] || [ -n "$(ls -A /dev/dri 2>/dev/null)" ]; then export VGL_FPS="${DISPLAY_REFRESH}" - /usr/bin/vglrun -d "${VGL_DISPLAY:-egl}" +wm /usr/bin/startplasma-x11 & + /usr/bin/vglrun -d "${VGL_DISPLAY:-egl}" +wm /usr/bin/dbus-launch /usr/bin/startplasma-x11 & else - /usr/bin/startplasma-x11 & + /usr/bin/dbus-launch /usr/bin/startplasma-x11 & fi # Start Fcitx input method framework diff --git a/supervisord.conf b/supervisord.conf index deb2f43..f069824 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -38,7 +38,7 @@ autorestart=true priority=1 [program:dbus] -command=bash -c "mkdir -pm700 \"${XDG_RUNTIME_DIR}\"; chown -f ubuntu:ubuntu \"${XDG_RUNTIME_DIR}\"; chmod -f 700 \"${XDG_RUNTIME_DIR}\"; dbus-daemon --session --nosyslog --address=\"${DBUS_SESSION_BUS_ADDRESS}\"" +command=bash -c "mkdir -pm700 \"${XDG_RUNTIME_DIR}\"; chown -f ubuntu:ubuntu \"${XDG_RUNTIME_DIR}\"; chmod -f 700 \"${XDG_RUNTIME_DIR}\"; sudo dbus-daemon --system --nosyslog --nopidfile --address=\"${DBUS_SESSION_BUS_ADDRESS}\"" environment=DISPLAY="%(ENV_DISPLAY)s",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",DBUS_SESSION_BUS_ADDRESS="%(ENV_DBUS_SESSION_BUS_ADDRESS)s" stdout_logfile=/tmp/dbus.log stdout_logfile_maxbytes=5MB