From 9ac216cbb419c71eb22e13fb70c5e14fefe7287c Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Tue, 17 Mar 2026 16:45:21 +0100 Subject: [PATCH] update these for better ux and ui inside os --- build/Dockerfile | 3 +- build/setup-desktop.sh | 103 +++++++++++++++++++++++++++++++---------- 2 files changed, 80 insertions(+), 26 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 8cfc7fa..00a3e9a 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -6,8 +6,7 @@ RUN apk add --no-cache \ gcompat \ libc6-compat \ bash \ - bash-completion \ - alacritty && \ + bash-completion && \ update-ca-certificates COPY pm /usr/local/bin/pm diff --git a/build/setup-desktop.sh b/build/setup-desktop.sh index e076b15..af1e18f 100644 --- a/build/setup-desktop.sh +++ b/build/setup-desktop.sh @@ -2,14 +2,14 @@ # This script runs as root when the container starts echo "**** Setting up custom desktop shortcuts ****" -# Ensure the Desktop folder exists for the default 'abc' user mkdir -p /config/Desktop +mkdir -p /config/.config/xfce4/xfconf/xfce-perchannel-xml cat < /config/Desktop/LazyPM.desktop [Desktop Entry] Version=1.0 Type=Application -Name=Project Management Survey +Name=PM Survey Comment=Launch the Project Management Survey Exec=/usr/local/bin/pm start Icon=utilities-terminal @@ -17,30 +17,85 @@ Terminal=true Categories=Utility; EOF -chmod +x /config/Desktop/LazyPM.desktop -chown abc:abc /config/Desktop/LazyPM.desktop +cat < /config/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-terminal.xml + -pm # initialize the service to ensure the database is set up - -echo "**** Setting default browser to Chromium... ****" - -xdg-settings set default-web-browser chromium.desktop - -echo "**** Setting default handlers for HTTP and HTTPS... ****" -xdg-mime default chromium.desktop x-scheme-handler/http -xdg-mime default chromium.desktop x-scheme-handler/https - -echo "**** Setting up bash completion... ****" -source /etc/bash/bash_completion.sh - -echo "Setting Alacritty as default terminal..." -mkdir -p /config/.config/xfce4 - -cat > /config/.config/xfce4/helpers.rc < + + + + + + + + + + + + + + + + + + + + + + + + EOF -chown -R abc:abc /config/.config +cat < /config/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +EOF + +chmod +x /config/Desktop/LazyPM.desktop +chown -R abc:abc /config/Desktop /config/.config echo "**** Desktop setup complete ****" \ No newline at end of file