chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

commit 833293d854e5755d6511486a8f74adc1a0767a0e
parent 80e91d119d46fdb74cf4e527c2e61eeb8784c37f
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Fri, 23 Oct 2026 15:47:16 -0400

start 0.3: gnome edition

gnome as gnome does it, with our wallpaper and icons, a dock (dash to dock) and tray icons
(appindicator), both built from source. gdm instead of lightdm: without it gnome has no lock
screen. build.sh and the installer know how to set up and remove gdm's autologin. the live
session runs on x11 for the installer, and the installer is first in the dock

Diffstat:
MREADME.md | 2+-
MVERSION | 2+-
Mbuild.sh | 20++++++++++++++++++--
Aeditions/gnome/edition | 4++++
Aeditions/gnome/overlay/etc/dinit.d/display-manager | 12++++++++++++
Aeditions/gnome/overlay/usr/lib/dinit/gdm | 4++++
Aeditions/gnome/packages | 8++++++++
Moverlay/usr/lib/live-installer/installer.py | 10++++++++--
Atools/pkg/chamesle-gnome/files/usr/share/glib-2.0/schemas/50_chamesle-gnome.gschema.override | 26++++++++++++++++++++++++++
Atools/pkg/chamesle-gnome/post-install | 3+++
Atools/pkg/chamesle-gnome/post-upgrade | 3+++
Atools/pkg/chamesle-gnome/recipe | 13+++++++++++++
Atools/pkg/gnome-shell-extension-appindicator/post-deinstall | 3+++
Atools/pkg/gnome-shell-extension-appindicator/post-install | 3+++
Atools/pkg/gnome-shell-extension-appindicator/post-upgrade | 3+++
Atools/pkg/gnome-shell-extension-appindicator/recipe | 18++++++++++++++++++
Atools/pkg/gnome-shell-extension-dash-to-dock/post-deinstall | 3+++
Atools/pkg/gnome-shell-extension-dash-to-dock/post-install | 3+++
Atools/pkg/gnome-shell-extension-dash-to-dock/post-upgrade | 3+++
Atools/pkg/gnome-shell-extension-dash-to-dock/recipe | 16++++++++++++++++
20 files changed, 153 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md @@ -9,7 +9,7 @@ apps come from Flathub, and there's a real package manager underneath if you wan - an installer based on Linux Mint's: whole disk (with encryption or LVM) or your own partitions, GParted built in - linux-firmware, Mesa, os-prober and Firefox out of the box -Editions: **Xfce** (set up like Windows) now, MATE, Cinnamon, GNOME and KDE Plasma later. +Editions: **Xfce**, **MATE** and **Cinnamon**, set up like Windows. **GNOME** is coming in 0.3, KDE Plasma later. Website: [chamesle.org](https://chamesle.org) ยท downloads and the package repo: [SourceForge](https://sourceforge.net/projects/chameslerepos/) diff --git a/VERSION b/VERSION @@ -1 +1 @@ -0.2.1 +0.3.0 diff --git a/build.sh b/build.sh @@ -96,8 +96,16 @@ echo 'live ALL=(ALL:ALL) NOPASSWD: ALL' > "$ROOT/etc/sudoers.d/live"; chmod 440 mkdir -p "$ROOT/etc/polkit-1/rules.d" printf 'polkit.addRule(function(action, subject) {\n if (subject.user == "live") return polkit.Result.YES;\n});\n' > "$ROOT/etc/polkit-1/rules.d/49-live.rules" SESSION=$(sed -n 's/^session=//p' "$HERE/editions/$EDITION/edition" 2>/dev/null || echo "$EDITION") -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" +LOGIN=$(sed -n 's/^login=//p' "$HERE/editions/$EDITION/edition" 2>/dev/null); LOGIN=${LOGIN:-lightdm} +if [ "$LOGIN" = gdm ]; then + # gdm has a single config file, the installer takes these lines out again. the session comes from accountsservice + sed -i 's/^\[daemon\]$/&\n# the live session only\nAutomaticLoginEnable=True\nAutomaticLogin=live/' "$ROOT/etc/gdm/custom.conf" + mkdir -p "$ROOT/var/lib/AccountsService/users" + printf '[User]\nSession=%s\nSystemAccount=false\n' "$SESSION" > "$ROOT/var/lib/AccountsService/users/live" +else + 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" +fi "$IN" "$ROOT" /usr/bin/xdg-user-dirs-update 2>/dev/null || true # 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" @@ -109,6 +117,14 @@ 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)"; gio set "$f" metadata::trusted true' NoDisplay=true EOF +# gnome has no desktop icons: the installer goes first in the dock instead +GNOME_LOOK=$ROOT/usr/share/glib-2.0/schemas/50_chamesle-gnome.gschema.override +if [ -f "$GNOME_LOOK" ]; then + mkdir -p "$ROOT/home/live/.config/dconf" "$ROOT/tmp/live-dconf" + { echo '[org/gnome/shell]'; sed -n "s/^favorite-apps=\[/&'chamesle-install.desktop', /p" "$GNOME_LOOK"; } > "$ROOT/tmp/live-dconf/live" + "$IN" "$ROOT" /usr/bin/dconf compile /home/live/.config/dconf/user /tmp/live-dconf + rm -rf "$ROOT/tmp/live-dconf" +fi "$IN" "$ROOT" /usr/bin/chown -R live:live /home/live rm -f "$ROOT/etc/machine-id" "$ROOT/var/lib/dbus/machine-id" rm -rf "$ROOT/var/cache/apk"/* diff --git a/editions/gnome/edition b/editions/gnome/edition @@ -0,0 +1,4 @@ +name=GNOME +# the live session is on X11, where the installer is at home. installed systems start on wayland, gnome's default +session=gnome-xorg +login=gdm diff --git a/editions/gnome/overlay/etc/dinit.d/display-manager b/editions/gnome/overlay/etc/dinit.d/display-manager @@ -0,0 +1,12 @@ +# gdm (the gnome edition's, the others use lightdm) +type = process +command = /usr/lib/dinit/gdm +depends-on = dbus +depends-on = elogind +waits-for = polkitd +waits-for = plymouth-quit +waits-for = udev-trigger +waits-for = network +restart = true +smooth-recovery = true +logfile = /var/log/gdm-dinit.log diff --git a/editions/gnome/overlay/usr/lib/dinit/gdm b/editions/gnome/overlay/usr/lib/dinit/gdm @@ -0,0 +1,4 @@ +#!/bin/sh +# gdm wants its run directory made for it +mkdir -m0711 -p /run/gdm && chown root:gdm /run/gdm +exec /usr/bin/gdm diff --git a/editions/gnome/packages b/editions/gnome/packages @@ -0,0 +1,8 @@ +# gnome edition: gnome the way gnome does it, plus a dock and tray icons +# gnome's own parts without the "gnome" bundle, which brings games, maps, contacts, docs and more +gnome-shell gnome-session gnome-settings-daemon gnome-control-center gnome-keyring gnome-bluetooth gdm +nautilus sushi file-roller gnome-console gnome-text-editor gnome-calculator gnome-system-monitor +gnome-disk-utility gnome-tweaks loupe evince celluloid +gvfs xdg-desktop-portal-gnome xdg-desktop-portal-gtk xdg-user-dirs-gtk adwaita-icon-theme adwaita-fonts +gnome-themes-extra +chamesle-gnome diff --git a/overlay/usr/lib/live-installer/installer.py b/overlay/usr/lib/live-installer/installer.py @@ -47,7 +47,10 @@ class InstallerEngine: self.do_run_in_chroot("cat /dev/shm/.passwd | chpasswd -c SHA512") os.system("rm -f /target/dev/shm/.passwd") - if self.setup.autologin: + if self.setup.autologin and os.path.exists("/target/etc/gdm/custom.conf"): + os.system("sed -i 's/^\\[daemon\\]$/&\\nAutomaticLoginEnable=True\\nAutomaticLogin=%s/' /target/etc/gdm/custom.conf" + % self.setup.username) + elif self.setup.autologin: os.makedirs("/target/etc/lightdm/lightdm.conf.d", exist_ok=True) with open("/target/etc/lightdm/lightdm.conf.d/80-autologin.conf", "w") as f: f.write("[Seat:*]\nautologin-user=%s\n" % self.setup.username) @@ -222,8 +225,11 @@ class InstallerEngine: "/usr/share/applications/chamesle-install.desktop", "/usr/bin/chamesle-install", "/usr/bin/live-installer", "/usr/lib/live-installer", "/usr/share/live-installer", "/usr/share/icons/live-installer-progress-dot-on.png", - "/usr/share/icons/live-installer-progress-dot-off.png"): + "/usr/share/icons/live-installer-progress-dot-off.png", "/var/lib/AccountsService/users/live"): os.system("rm -rf /target%s" % path) + # gdm keeps the live autologin in its one config file + if os.path.exists("/target/etc/gdm/custom.conf"): + os.system("sed -i '/^# the live session only$/d; /^AutomaticLogin/d' /target/etc/gdm/custom.conf") self.do_run_in_chroot("userdel -r live") # add new user diff --git a/tools/pkg/chamesle-gnome/files/usr/share/glib-2.0/schemas/50_chamesle-gnome.gschema.override b/tools/pkg/chamesle-gnome/files/usr/share/glib-2.0/schemas/50_chamesle-gnome.gschema.override @@ -0,0 +1,26 @@ +# the chamesle look for gnome: gnome as it is, with our wallpaper and icons, a dock, tray icons, +# and minimise and maximise buttons +[org.gnome.desktop.background] +picture-uri='file:///usr/share/backgrounds/chamesle/default.png' +picture-uri-dark='file:///usr/share/backgrounds/chamesle/default.png' +picture-options='zoom' + +[org.gnome.desktop.screensaver] +picture-uri='file:///usr/share/backgrounds/chamesle/default.png' +picture-options='zoom' + +[org.gnome.desktop.interface] +icon-theme='Chamesle' + +[org.gnome.desktop.wm.preferences] +button-layout='appmenu:minimize,maximize,close' + +[org.gnome.desktop.peripherals.touchpad] +tap-to-click=true + +[org.gnome.shell] +enabled-extensions=['dash-to-dock@micxgx.gmail.com', 'appindicatorsupport@rgcjonas.gmail.com'] +favorite-apps=['firefox.desktop', 'org.gnome.Nautilus.desktop', 'org.chamesle.Store.desktop', 'org.gnome.Console.desktop', 'org.gnome.TextEditor.desktop'] + +[org.gnome.login-screen] +logo='/usr/share/chamesle/greeter-logo.png' diff --git a/tools/pkg/chamesle-gnome/post-install b/tools/pkg/chamesle-gnome/post-install @@ -0,0 +1,3 @@ +#!/bin/sh +glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null +exit 0 diff --git a/tools/pkg/chamesle-gnome/post-upgrade b/tools/pkg/chamesle-gnome/post-upgrade @@ -0,0 +1,3 @@ +#!/bin/sh +glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null +exit 0 diff --git a/tools/pkg/chamesle-gnome/recipe b/tools/pkg/chamesle-gnome/recipe @@ -0,0 +1,13 @@ +name=chamesle-gnome +version=0.3.0 +rel=1 +desc="The Chamesle look for GNOME: wallpaper, icons, a dock and tray icons" +url=https://chamesle.org +license=GPL-3.0-or-later +source= +makedeps="" +depends="chamesle-artwork gnome-shell-extension-dash-to-dock gnome-shell-extension-appindicator" + +build() { + cp -a . "$pkgdir/" +} diff --git a/tools/pkg/gnome-shell-extension-appindicator/post-deinstall b/tools/pkg/gnome-shell-extension-appindicator/post-deinstall @@ -0,0 +1,3 @@ +#!/bin/sh +glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null +exit 0 diff --git a/tools/pkg/gnome-shell-extension-appindicator/post-install b/tools/pkg/gnome-shell-extension-appindicator/post-install @@ -0,0 +1,3 @@ +#!/bin/sh +glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null +exit 0 diff --git a/tools/pkg/gnome-shell-extension-appindicator/post-upgrade b/tools/pkg/gnome-shell-extension-appindicator/post-upgrade @@ -0,0 +1,3 @@ +#!/bin/sh +glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null +exit 0 diff --git a/tools/pkg/gnome-shell-extension-appindicator/recipe b/tools/pkg/gnome-shell-extension-appindicator/recipe @@ -0,0 +1,18 @@ +name=gnome-shell-extension-appindicator +version=66 +rel=1 +desc="Tray icons for GNOME, for apps that put one there (and the update notifier)" +url=https://github.com/ubuntu/gnome-shell-extension-appindicator +license=GPL-2.0-or-later +source=https://github.com/ubuntu/gnome-shell-extension-appindicator/archive/refs/tags/v$version.tar.gz +sha256=3f692824e54c2192d984a24e1685722d1c88787e24dba662aecabe0b7f9e2bbc +# gettext-stub claims to be a newer gettext: without the ! apk picks it and no translations get built +makedeps="meson ninja jq !gettext-stub gettext glib" +depends="gnome-shell" + +build() { + meson setup build --prefix=/usr -Dlocal_install=disabled + meson install -C build --destdir "$pkgdir" + # compiled for this package alone, it would replace the system's: post-install does it for real + rm -f "$pkgdir/usr/share/glib-2.0/schemas/gschemas.compiled" +} diff --git a/tools/pkg/gnome-shell-extension-dash-to-dock/post-deinstall b/tools/pkg/gnome-shell-extension-dash-to-dock/post-deinstall @@ -0,0 +1,3 @@ +#!/bin/sh +glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null +exit 0 diff --git a/tools/pkg/gnome-shell-extension-dash-to-dock/post-install b/tools/pkg/gnome-shell-extension-dash-to-dock/post-install @@ -0,0 +1,3 @@ +#!/bin/sh +glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null +exit 0 diff --git a/tools/pkg/gnome-shell-extension-dash-to-dock/post-upgrade b/tools/pkg/gnome-shell-extension-dash-to-dock/post-upgrade @@ -0,0 +1,3 @@ +#!/bin/sh +glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null +exit 0 diff --git a/tools/pkg/gnome-shell-extension-dash-to-dock/recipe b/tools/pkg/gnome-shell-extension-dash-to-dock/recipe @@ -0,0 +1,16 @@ +name=gnome-shell-extension-dash-to-dock +version=110 +rel=1 +desc="A dock for GNOME: the dash out of the overview, always at hand" +url=https://github.com/micheleg/dash-to-dock +license=GPL-2.0-or-later +source=https://github.com/micheleg/dash-to-dock/archive/refs/tags/extensions.gnome.org-v$version.tar.gz +sha256=0aa29bfea9dd9c3622e63b8eeabb9d30afa96b64337132eeb1b7add4c90f5473 +# gettext-stub claims to be a newer gettext: without the ! apk picks it and no translations get built +makedeps="make sassc !gettext-stub gettext glib" +depends="gnome-shell" + +build() { + # DESTDIR makes it a system-wide install, schemas in /usr/share/glib-2.0/schemas + make VERSION=$version DESTDIR="$pkgdir" install +}