wrap dbus

This commit is contained in:
thelamer 2025-07-16 18:29:23 -04:00
parent d4a0b2eefe
commit 904938c72d
No known key found for this signature in database
3 changed files with 12 additions and 6 deletions

View File

@ -8,7 +8,8 @@ LABEL maintainer="thelamer"
ARG DEBIAN_FRONTEND="noninteractive"
# title
ENV TITLE="Ubuntu KDE"
ENV TITLE="Ubuntu KDE" \
NO_GAMEPAD=true
RUN \
echo "**** add icon ****" && \

View File

@ -8,7 +8,8 @@ LABEL maintainer="thelamer"
ARG DEBIAN_FRONTEND="noninteractive"
# title
ENV TITLE="Ubuntu KDE"
ENV TITLE="Ubuntu KDE" \
NO_GAMEPAD=true
RUN \
echo "**** add icon ****" && \

View File

@ -12,7 +12,7 @@ fi
setterm blank 0
setterm powerdown 0
# Direcotries
# Directories
sudo rm -f /usr/share/dbus-1/system-services/org.freedesktop.UDisks2.service
mkdir -p "${HOME}/.config/autostart" "${HOME}/.XDG" "${HOME}/.local/share/"
chmod 700 "${HOME}/.XDG"
@ -49,6 +49,10 @@ if which nvidia-smi && [ "${DISABLE_ZINK}" == "false" ]; then
export GALLIUM_DRIVER=zink
fi
# Stat DE
unset LD_PRELOAD
dbus-launch /usr/bin/startplasma-x11 > /dev/null 2>&1
# Dbus defaults
export XDG_RUNTIME_DIR="/tmp/xdg-runtime-${PUID}"
mkdir -p -m700 "${XDG_RUNTIME_DIR}"
chown -R "${PUID}:${PGID}" "${XDG_RUNTIME_DIR}"
# Start DE
exec dbus-launch --exit-with-session /usr/bin/startplasma-x11 > /dev/null 2>&1