wallpaper: bundle stock wallpapers and default to geminux-dark.png

This commit is contained in:
Luxferre committed 2026-11-27 18:14:46 +02:00
1 parent 8a7d466655
commit 5472d4273a
9 files changed
+94 -19

No files matched your search

+11
View File
@@ -296,6 +296,17 @@ make_pkg(
# 11. geminux-config
cstage = os.path.join(work_dir, "geminux-config")
copy_tree_dedup("/geminux/overlay/rootfs", cstage, dedup=True)
wp_src = "/geminux/artwork/wallpapers"
if os.path.isdir(wp_src):
wp_dst = os.path.join(cstage, "usr", "share", "geminux", "wallpapers")
os.makedirs(wp_dst, exist_ok=True)
os.chmod(wp_dst, 0o755)
for fn in sorted(os.listdir(wp_src)):
sp = os.path.join(wp_src, fn)
if os.path.isfile(sp) and not os.path.islink(sp):
dp = os.path.join(wp_dst, fn)
shutil.copy2(sp, dp)
os.chmod(dp, 0o644)
for rel in ("etc/os-release", "usr/lib/os-release", "etc/issue", "etc/motd"):
p = os.path.join(cstage, rel)
if os.path.isfile(p):