diff --git a/Dockerfile.debian b/Dockerfile.debian index 7c06e32..98d1ca9 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -363,8 +363,11 @@ RUN \ && echo '' > /opt/frontend/index.html \ && echo '
If you are not redirected, click here.
' >> /opt/frontend/index.html \ && chmod -R 755 /opt/frontend \ + && convert /opt/frontend/web/images/icons/novnc-ios-180.png -resize "128x128" /tmp/steam-headless.png \ + && xdg-icon-resource install --novendor --size 128 /tmp/steam-headless.png \ && \ - echo + echo "**** Section cleanup ****" \ + && rm -f /tmp/steam-headless.png # Install Websockify ARG WEBSOCKETIFY_VERSION=0.11.0 diff --git a/overlay/etc/cont-init.d/10-setup_user.sh b/overlay/etc/cont-init.d/10-setup_user.sh index f2ac554..16fb70c 100644 --- a/overlay/etc/cont-init.d/10-setup_user.sh +++ b/overlay/etc/cont-init.d/10-setup_user.sh @@ -79,13 +79,6 @@ ln -sf /usr/share/backgrounds/steam.jpg /etc/alternatives/desktop-background chmod a+r /etc/alternatives/desktop-background -# Setup home directory and permissions -echo "Adding default home directory template" -mkdir -p ${USER_HOME} -chown -R ${PUID}:${PGID} /etc/home_directory_template -rsync -aq --ignore-existing /etc/home_directory_template/ ${USER_HOME}/ - - # Setup services log path echo "Setting ownership of all log files in '${USER_HOME}/.cache/log'" mkdir -p "${USER_HOME}/.cache/log" diff --git a/overlay/etc/cont-init.d/70-configure_desktop.sh b/overlay/etc/cont-init.d/70-configure_desktop.sh index 56b3c7d..99fe7ff 100644 --- a/overlay/etc/cont-init.d/70-configure_desktop.sh +++ b/overlay/etc/cont-init.d/70-configure_desktop.sh @@ -8,5 +8,7 @@ else echo "Desktop service not available when container is run in 'secondary' mode." sed -i 's|^autostart.*=.*$|autostart=false|' /etc/supervisor.d/desktop.ini fi +echo "Ensure home directory template is owned by the default user." +chown -R ${PUID}:${PGID} /templates/home_directory_template echo "DONE" diff --git a/overlay/etc/home_directory_template/.bashrc b/overlay/templates/home_directory_template/.bashrc similarity index 100% rename from overlay/etc/home_directory_template/.bashrc rename to overlay/templates/home_directory_template/.bashrc diff --git a/overlay/etc/home_directory_template/.cache/log/.placeholder b/overlay/templates/home_directory_template/.cache/log/.placeholder similarity index 100% rename from overlay/etc/home_directory_template/.cache/log/.placeholder rename to overlay/templates/home_directory_template/.cache/log/.placeholder diff --git a/overlay/etc/home_directory_template/.config/mimeapps.list b/overlay/templates/home_directory_template/.config/mimeapps.list similarity index 100% rename from overlay/etc/home_directory_template/.config/mimeapps.list rename to overlay/templates/home_directory_template/.config/mimeapps.list diff --git a/overlay/etc/home_directory_template/.config/xfce4/helpers.rc b/overlay/templates/home_directory_template/.config/xfce4/helpers.rc similarity index 100% rename from overlay/etc/home_directory_template/.config/xfce4/helpers.rc rename to overlay/templates/home_directory_template/.config/xfce4/helpers.rc diff --git a/overlay/etc/home_directory_template/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml b/overlay/templates/home_directory_template/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml similarity index 73% rename from overlay/etc/home_directory_template/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml rename to overlay/templates/home_directory_template/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml index 1b326c0..8f65b08 100644 --- a/overlay/etc/home_directory_template/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml +++ b/overlay/templates/home_directory_template/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml @@ -49,5 +49,23 @@