commit b9d0dad0904f8ade0f4215a5b73c6ba69bf67cfa
parent 3e167095f1854d9a529b8345ef09dffb01fc50de
Author: torter <koubbamohamedrayan@gmail.com>
Date: Wed, 21 Oct 2026 17:13:39 +0000
build: any edition, caja trusts the installer icon too; artwork renders into chamesle-artwork
Diffstat:
2 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/artwork/render.sh b/artwork/render.sh
@@ -4,8 +4,8 @@
set -eu
cd "$(dirname "$0")"
out=../overlay/usr/share
-# wallpapers go in the xfce look package
-look=../tools/pkg/chamesle-xfce/files/usr/share
+# wallpapers, login screen logo and the start button go in the artwork package
+look=../tools/pkg/chamesle-artwork/files/usr/share
resvg=${RESVG:-resvg}
mkdir -p $look/backgrounds/chamesle $out/plymouth/themes/chamesle
@@ -40,3 +40,13 @@ cat > $tmp/greeter.svg <<'SVG'
SVG
$resvg --resources-dir $tmp ${FONTS:+--use-fonts-dir $FONTS} $tmp/greeter.svg $look/chamesle/greeter-logo.png
rm -rf $tmp
+
+# the Chamesle icon theme: Papirus, with the logo as the start button (start-here)
+tmp=$(mktemp -d)
+cp logo.png $tmp/
+printf '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="512" height="512"><image width="512" height="512" xlink:href="logo.png"/></svg>\n' > $tmp/logo.svg
+for s in 16 22 24 32 48 64 128 256; do
+ mkdir -p $look/icons/Chamesle/${s}x$s/places
+ $resvg --resources-dir $tmp -w $s -h $s $tmp/logo.svg $look/icons/Chamesle/${s}x$s/places/start-here.png
+done
+rm -rf $tmp
diff --git a/build.sh b/build.sh
@@ -49,7 +49,7 @@ echo "v3 $PUBLIC_REPO" > "$ROOT/etc/apk/repositories"
echo "=== [2/5] CHAMESLE: SERVICES, LOOK AND BRANDING"
cp -a "$HERE/overlay/." "$ROOT/"
-cp -a "$HERE/editions/$EDITION/overlay/." "$ROOT/"
+[ -d "$HERE/editions/$EDITION/overlay" ] && cp -a "$HERE/editions/$EDITION/overlay/." "$ROOT/"
"$HERE/tools/themes.sh" "$ROOT"
# xfce's stock wallpapers -> ours, for monitors xfce4-desktop.xml doesn't name
for f in xfce-x.svg xfce-shapes.svg xfce-stripes.png xfce-teal.png xfce-verticals.png; do
@@ -96,14 +96,14 @@ SESSION=$(sed -n 's/^session=//p' "$HERE/editions/$EDITION/edition" 2>/dev/null
printf '# the live session only (the installer removes this file)\n[Seat:*]\nautologin-user=live\nautologin-session=%s\n' "$SESSION" \
> "$ROOT/etc/lightdm/lightdm.conf.d/90-live.conf"
"$IN" "$ROOT" /usr/bin/xdg-user-dirs-update 2>/dev/null || true
-# installer icon on the desktop, marked trusted at login or xfce asks first
+# installer icon on the desktop, marked trusted at login or xfce and caja ask first
mkdir -p "$ROOT/home/live/Desktop" "$ROOT/home/live/.config/autostart"
install -m755 "$ROOT/usr/share/applications/chamesle-install.desktop" "$ROOT/home/live/Desktop/"
cat > "$ROOT/home/live/.config/autostart/trust-installer.desktop" <<'EOF'
[Desktop Entry]
Type=Application
Name=Trust the installer icon
-Exec=sh -c 'f=$HOME/Desktop/chamesle-install.desktop; gio set "$f" metadata::xfce-exe-checksum "$(sha256sum "$f" | cut -d" " -f1)"'
+Exec=sh -c 'f=$HOME/Desktop/chamesle-install.desktop; gio set "$f" metadata::xfce-exe-checksum "$(sha256sum "$f" | cut -d" " -f1)"; gio set "$f" metadata::trusted true'
NoDisplay=true
EOF
"$IN" "$ROOT" /usr/bin/chown -R live:live /home/live