chamesle

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

commit 03926a206bd13146f254e9032bf1bc0f1f65762b
parent a240f294e3ed9dee38e5a995fea546ace34c50d9
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Wed, 21 Oct 2026 21:34:21 +0000

0.2.1: windows programs open with a double-click, installer fits small screens, no handles on the mate panel

Diffstat:
MVERSION | 2+-
Meditions/base.packages | 2+-
Moverlay/usr/lib/live-installer/main.py | 15+++++++++++++--
Mtools/pkg/chamesle-cinnamon/files/usr/share/glib-2.0/schemas/50_chamesle-cinnamon.gschema.override | 6++++++
Mtools/pkg/chamesle-cinnamon/recipe | 2+-
Atools/pkg/chamesle-mate/files/etc/skel/.config/gtk-3.0/gtk.css | 4++++
Mtools/pkg/chamesle-mate/recipe | 2+-
Mtools/pkg/chamesle-store/recipe | 4++--
Atools/pkg/chamesle-wine/files/usr/bin/chamesle-exe | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Atools/pkg/chamesle-wine/files/usr/share/applications/chamesle-exe.desktop | 9+++++++++
Atools/pkg/chamesle-wine/files/usr/share/applications/mimeapps.list | 7+++++++
Atools/pkg/chamesle-wine/recipe | 13+++++++++++++
Atools/pkg/dxvk/recipe | 16++++++++++++++++
Atools/repo/reindex.sh | 12++++++++++++
14 files changed, 136 insertions(+), 8 deletions(-)

diff --git a/VERSION b/VERSION @@ -1 +1 @@ -0.2.0 +0.2.1 diff --git a/editions/base.packages b/editions/base.packages @@ -39,4 +39,4 @@ setxkbmap ckbcomp xkeyboard-config lvm2 dosfstools dracut xrandr bsdtar rpm zenity # the store, update notifier and driver manager -chamesle-store chamesle-updater chamesle-drivers chamesle-base +chamesle-store chamesle-updater chamesle-drivers chamesle-base chamesle-wine diff --git a/overlay/usr/lib/live-installer/main.py b/overlay/usr/lib/live-installer/main.py @@ -296,7 +296,20 @@ class InstallerWindow: self.builder.get_object("button_lets_go").connect("clicked", self.on_lets_go_clicked) + # the pages scroll when the screen is short, so Back and Next never end up under the panel + notebook = self.builder.get_object("notebook1") + holder = notebook.get_parent() + holder.remove(notebook) + scroll = Gtk.ScrolledWindow(hscrollbar_policy=Gtk.PolicyType.NEVER, + propagate_natural_height=True, propagate_natural_width=True) + scroll.add(notebook) + holder.add(scroll) + self.window.show_all() + area = Gdk.Display.get_default().get_monitor_at_window(self.window.get_window()).get_workarea() + width, height = self.window.get_size() + if height > area.height - 60: + self.window.resize(width, area.height - 60) def on_key_press(self, widget, event): # CTRL+T key @@ -1193,7 +1206,6 @@ class InstallerWindow: self.slideshow_browser.connect('context-menu', self.on_context_menu) self.builder.get_object("title_eventbox").hide() self.builder.get_object("button_eventbox").hide() - self.window.resize(100, 100) elif(sel == self.PAGE_CUSTOMPAUSED): self.activate_page(self.PAGE_INSTALL) self.builder.get_object("button_next").set_sensitive(False) @@ -1201,7 +1213,6 @@ class InstallerWindow: self.builder.get_object("button_quit").set_sensitive(False) self.builder.get_object("title_eventbox").hide() self.builder.get_object("button_eventbox").hide() - self.window.resize(100, 100) self.paused = False else: self.builder.get_object("button_back").set_sensitive(True) diff --git a/tools/pkg/chamesle-cinnamon/files/usr/share/glib-2.0/schemas/50_chamesle-cinnamon.gschema.override b/tools/pkg/chamesle-cinnamon/files/usr/share/glib-2.0/schemas/50_chamesle-cinnamon.gschema.override @@ -9,6 +9,12 @@ icon-theme='Chamesle' cursor-theme='Adwaita' font-name='Inter 10' +[org.gnome.desktop.interface] +# gnome-terminal and other gtk apps read the fonts from here +font-name='Inter 10' +monospace-font-name='Noto Sans Mono 10' +document-font-name='Inter 10' + [org.cinnamon.desktop.wm.preferences] theme='Fluent-Light' titlebar-font='Inter Semi-Bold 10' diff --git a/tools/pkg/chamesle-cinnamon/recipe b/tools/pkg/chamesle-cinnamon/recipe @@ -1,6 +1,6 @@ name=chamesle-cinnamon version=0.2.0 -rel=1 +rel=2 desc="The Chamesle look for Cinnamon: wallpaper, theme settings, login screen" url=https://chamesle.org license=GPL-3.0-or-later diff --git a/tools/pkg/chamesle-mate/files/etc/skel/.config/gtk-3.0/gtk.css b/tools/pkg/chamesle-mate/files/etc/skel/.config/gtk-3.0/gtk.css @@ -0,0 +1,4 @@ +/* no grab handles on the panel's window list and tray, the panel is locked anyway */ +MatePanelAppletFrameDBus { + -gtk-icon-source: none; +} diff --git a/tools/pkg/chamesle-mate/recipe b/tools/pkg/chamesle-mate/recipe @@ -1,6 +1,6 @@ name=chamesle-mate version=0.2.0 -rel=1 +rel=2 desc="The Chamesle look for MATE: wallpaper, panel, theme settings, login screen" url=https://chamesle.org license=GPL-3.0-or-later diff --git a/tools/pkg/chamesle-store/recipe b/tools/pkg/chamesle-store/recipe @@ -1,12 +1,12 @@ name=chamesle-store version=0.2.0 -rel=5 +rel=6 desc="The Chamesle store: apps from Flathub and the Chamesle repo, updates, .deb and .rpm files" url=https://chamesle.org license=GPL-3.0-or-later source= makedeps="" -depends="python3 python3-gobject gtk4 libadwaita flatpak polkit" +depends="python3 python3-gobject gtk4 libadwaita flatpak polkit chamesle-base chamesle-updater chamesle-drivers chamesle-wine" build() { cp -a . "$pkgdir/" diff --git a/tools/pkg/chamesle-wine/files/usr/bin/chamesle-exe b/tools/pkg/chamesle-wine/files/usr/bin/chamesle-exe @@ -0,0 +1,50 @@ +#!/bin/sh +# double-clicked a windows program: run it with wine, installing and setting things up the first time +f=$1 +title="Windows program" +[ -n "$f" ] || { echo "usage: chamesle-exe FILE.exe" >&2; exit 1; } + +if ! command -v wine >/dev/null; then + zenity --question --title="$title" --icon=application-x-ms-dos-executable --ok-label=Install --cancel-label=Cancel \ + --text="To open <b>$(basename "$f" | sed 's/&/\&amp;/g; s/</\&lt;/g')</b>, Chamesle needs Windows support (Wine). It's about 400 MB.\n\nInstall it now?" || exit 0 + # the subshell keeps the pipe open, so the progress window stays up until apk is done + (pkexec /usr/libexec/chamesle-store-helper add wine wine-mono wine-gecko dxvk >/dev/null 2>&1; echo 100) | + zenity --progress --pulsate --auto-close --no-cancel --title="$title" --text="Installing Windows support..." + if ! command -v wine >/dev/null; then + zenity --error --title="$title" --text="Windows support couldn't be installed. Check that you're online and try again." + exit 1 + fi +fi + +export WINEPREFIX="${WINEPREFIX:-$HOME/.wine}" WINEDEBUG=-all + +# dxvk needs a vulkan driver: intel, newer amd cards, or nvidia's own +vulkan() { + for d in /sys/class/drm/card*/device/driver; do + case $(basename "$(readlink "$d")") in i915|xe|amdgpu|nvidia) return 0 ;; esac + done + return 1 +} + +setup() { + wineboot --init + wineserver --wait + if [ -d /usr/share/dxvk ] && vulkan; then + sys="$WINEPREFIX/drive_c/windows" + for dll in /usr/share/dxvk/x64/*.dll; do cp -f "$dll" "$sys/system32/"; done + for dll in /usr/share/dxvk/x32/*.dll; do cp -f "$dll" "$sys/syswow64/"; done + for name in d3d8 d3d9 d3d10core d3d11 dxgi; do + wine reg add 'HKCU\Software\Wine\DllOverrides' /v "$name" /d native,builtin /f + done + wineserver --wait + fi +} + +if [ ! -f "$WINEPREFIX/system.reg" ]; then + (setup >/dev/null 2>&1; echo 100) | + zenity --progress --pulsate --auto-close --no-cancel --title="$title" \ + --text="Setting up Windows support. This only happens once..." +fi + +cd "$(dirname "$f")" || exit 1 +exec wine start /unix "$f" diff --git a/tools/pkg/chamesle-wine/files/usr/share/applications/chamesle-exe.desktop b/tools/pkg/chamesle-wine/files/usr/share/applications/chamesle-exe.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Windows Program +Comment=Run Windows programs +Exec=chamesle-exe %f +Icon=application-x-ms-dos-executable +Terminal=false +NoDisplay=true +MimeType=application/x-ms-dos-executable;application/x-msdownload;application/vnd.microsoft.portable-executable;application/x-msi;application/x-ms-shortcut;application/x-bat; diff --git a/tools/pkg/chamesle-wine/files/usr/share/applications/mimeapps.list b/tools/pkg/chamesle-wine/files/usr/share/applications/mimeapps.list @@ -0,0 +1,7 @@ +[Default Applications] +application/x-ms-dos-executable=chamesle-exe.desktop +application/x-msdownload=chamesle-exe.desktop +application/vnd.microsoft.portable-executable=chamesle-exe.desktop +application/x-msi=chamesle-exe.desktop +application/x-ms-shortcut=chamesle-exe.desktop +application/x-bat=chamesle-exe.desktop diff --git a/tools/pkg/chamesle-wine/recipe b/tools/pkg/chamesle-wine/recipe @@ -0,0 +1,13 @@ +name=chamesle-wine +version=0.2.1 +rel=1 +desc="Double-click a Windows program and it runs, with Wine and DXVK" +url=https://chamesle.org +license=GPL-3.0-or-later +source= +makedeps="" +depends="zenity chamesle-store" + +build() { + cp -a . "$pkgdir/" +} diff --git a/tools/pkg/dxvk/recipe b/tools/pkg/dxvk/recipe @@ -0,0 +1,16 @@ +name=dxvk +version=3.1.1 +rel=1 +desc="Vulkan-based Direct3D 8, 9, 10 and 11 for Wine, what makes most Windows games run fast" +url=https://github.com/doitsujin/dxvk +license=Zlib +source=https://github.com/doitsujin/dxvk/releases/download/v$version/dxvk-$version.tar.gz +sha256=40565b4a724aadc4433fa4e010b4b23916d9b1f1baeee64e17186db94f54e608 +makedeps="" +depends="vulkan-loader" + +build() { + # windows dlls, copied into a wine prefix by chamesle-exe + install -d "$pkgdir/usr/share/dxvk" + cp -r x32 x64 "$pkgdir/usr/share/dxvk/" +} diff --git a/tools/repo/reindex.sh b/tools/repo/reindex.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# after building packages with tools/pkg/build.sh: drop the versions they replace and sign a new index +set -eu +HERE=$(cd "$(dirname "$0")" && pwd) +TOP=$HERE/../.. +R=${1:-$TOP/work/repo/x86_64} +APK=${APK:-apk} +KEY=$(ls "$HOME"/.config/chamesle/chamesle-*.rsa | head -n1) +python3 "$HERE/xbps2apk.py" --prune "$R" +"$APK" mkndx --keys-dir "$TOP/keys/apk" --sign-key "$KEY" --description "chamesle $(date +%Y-%m-%d)" \ + --index "$R/Packages.adb" --output "$R/Packages.adb.new" "$R"/*.apk +mv "$R/Packages.adb.new" "$R/Packages.adb"