chamesle

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

commit 3b809c616ded4560d5276f565bbe454872dadf38
parent 6dc6e5407d83f82dd59eb809fa7bb300509c65f2
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Sat, 31 Oct 2026 13:43:17 -0400

jiggity: a cjk font for japanese, korean and chinese, only when one of them is picked

Diffstat:
Moverlay/usr/bin/chamesle-desktop | 5+++--
Moverlay/usr/lib/jiggity/install.py | 9++++++---
2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/overlay/usr/bin/chamesle-desktop b/overlay/usr/bin/chamesle-desktop @@ -2,7 +2,8 @@ # chamesle-desktop NAME: puts one of chamesle's desktops on this system, the same one its iso used to have # chamesle-desktop the list # sudo chamesle-desktop kde -# jiggity runs it in the new system while it installs. CHAMESLE_PROGRESS=FD gets apk's progress +# jiggity runs it in the new system while it installs. CHAMESLE_PROGRESS=FD gets apk's progress, +# CHAMESLE_EXTRA=PKGS goes in with the rest set -eu D=/usr/share/chamesle/editions @@ -44,7 +45,7 @@ fi # what came from an older iso: as new as the repo, kernel and all. curl does the downloading, with one # percentage for all of it (chamesle-get) fix=; [ -n "$now" ] && fix="fix --reinstall$now" -/usr/libexec/chamesle-get ${fix:+"$fix"} "upgrade" "add !runit !runit-void $(echo $pkgs)" +/usr/libexec/chamesle-get ${fix:+"$fix"} "upgrade" "add !runit !runit-void $(echo $pkgs) ${CHAMESLE_EXTRA:-}" fp=$(val flatpaks) if [ -n "$fp" ]; then diff --git a/overlay/usr/lib/jiggity/install.py b/overlay/usr/lib/jiggity/install.py @@ -103,7 +103,7 @@ def install(row, passphrase, language, keyboard, progress, desktop=None, user=No chroot("userdel", "-r", "live") chroot("passwd", "-dl", "root") if desktop: - add_desktop(desktop, step) + add_desktop(desktop, step, language) else: open(T + "/etc/chamesle/firstboot", "w").close() progress(2, 30) @@ -182,7 +182,7 @@ def install(row, passphrase, language, keyboard, progress, desktop=None, user=No # the netinst: the desktop from the repo, with apk's progress. the wi-fi jiggity connected to comes along -def add_desktop(desktop, step): +def add_desktop(desktop, step, language): step(2, 0) shutil.copy("/etc/resolv.conf", T + "/etc/resolv.conf") nm = "/etc/NetworkManager/system-connections" @@ -192,7 +192,10 @@ def add_desktop(desktop, step): shutil.copy2(os.path.join(nm, f), T + nm) r, w = os.pipe() print("jiggity: chamesle-desktop", desktop) - p = subprocess.Popen(["chroot", T, "/usr/bin/env", "CHAMESLE_PROGRESS=%d" % w, "/usr/bin/chamesle-desktop", desktop], + # noto-fonts-ttf has no chinese, japanese or korean + extra = "noto-fonts-cjk-sans" if language[:2] in ("ja", "ko", "zh") else "" + p = subprocess.Popen(["chroot", T, "/usr/bin/env", "CHAMESLE_PROGRESS=%d" % w, "CHAMESLE_EXTRA=" + extra, + "/usr/bin/chamesle-desktop", desktop], pass_fds=(w,), stdout=sys.stderr, stderr=sys.stderr) os.close(w) with os.fdopen(r) as f: