system

the Chamesle handbook, init, live ISO and install helpers
git clone https://github.com/tortr-rs/system
Log | Files | Refs | README | LICENSE

commit 1f8a87c428e67a3ae2c591ffe8323e429dfb936e
parent 505a45c4e2c3cbe7cf1d5e6eb54b4d4c418e5b40
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Sat, 21 Nov 2026 18:22:05 +0000

desktop: no paths in ~/GNUstep, the same home runs it from /usr and /usr/local

Diffstat:
Mdesktop/windowmaker/bin/chamesle-windowmaker | 8+++++---
Mdesktop/windowmaker/share/WMRootMenu | 2+-
Mdesktop/windowmaker/share/WMState | 4++--
3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/desktop/windowmaker/bin/chamesle-windowmaker b/desktop/windowmaker/bin/chamesle-windowmaker @@ -1,19 +1,21 @@ #!/bin/sh # the Window Maker desktop: startx chamesle-windowmaker, or pick it in a display manager. # the first time it puts its look, dock and menu in ~/GNUstep (what was there goes to *.before), after that -# they are yours to change in WPrefs. CHAMESLE_WM_RESET=1 puts them back +# they are yours to change in WPrefs. CHAMESLE_WM_RESET=1 puts them back. ~/GNUstep names no path, so the same home +# works where this is in /usr and where it is in /usr/local: "chamesle-windowmaker autostart" and "web" find their files s=${CHAMESLE_WM_SHARE:-$(dirname "$(dirname "$(readlink -f "$0")")")/share/chamesle/windowmaker} +case $1 in autostart|web) f=$s/$1; shift; exec "$f" "$@";; esac g=$HOME/GNUstep export XDG_CURRENT_DESKTOP=WindowMaker XDG_SESSION_DESKTOP=WindowMaker if [ ! -e "$g/.chamesle-windowmaker" ] || [ -n "$CHAMESLE_WM_RESET" ]; then mkdir -p "$g/Defaults" "$g/Library/WindowMaker" for f in WindowMaker WMState WMRootMenu WMWindowAttributes; do [ -e "$g/Defaults/$f" ] && [ ! -e "$g/Defaults/$f.before" ] && mv "$g/Defaults/$f" "$g/Defaults/$f.before" - sed "s|@SHARE@|$s|g" "$s/$f" > "$g/Defaults/$f" + cp "$s/$f" "$g/Defaults/$f" done a=$g/Library/WindowMaker/autostart [ -e "$a" ] && [ ! -e "$a.before" ] && mv "$a" "$a.before" - printf '#!/bin/sh\nexec "%s/autostart"\n' "$s" > "$a" + printf '#!/bin/sh\nexec chamesle-windowmaker autostart\n' > "$a" chmod 755 "$a" touch "$g/.chamesle-windowmaker" fi diff --git a/desktop/windowmaker/share/WMRootMenu b/desktop/windowmaker/share/WMRootMenu @@ -2,7 +2,7 @@ "Chamesle", ("Terminal", SHORTCUT, "Mod4+Return", EXEC, xterm), ("Files", SHORTCUT, "Mod4+E", EXEC, xfe), - ("Web", SHORTCUT, "Mod4+W", EXEC, "@SHARE@/web"), + ("Web", SHORTCUT, "Mod4+W", EXEC, "chamesle-windowmaker web"), ("Applications", OPEN_PLMENU, "|| wmmenugen -parser:xdg /usr/share/applications /usr/local/share/applications"), ("Run...", SHORTCUT, "Mod4+R", SHEXEC, "%A(Run,Type a command:)"), ( diff --git a/desktop/windowmaker/share/WMState b/desktop/windowmaker/share/WMState @@ -36,14 +36,14 @@ Lock = Yes; }, { - Command = "@SHARE@/web"; + Command = "chamesle-windowmaker web"; Name = Navigator.firefox; AutoLaunch = No; Forced = No; BuggyApplication = No; Position = "0,3"; Omnipresent = No; - DropCommand = "@SHARE@/web %d"; + DropCommand = "chamesle-windowmaker web %d"; Lock = Yes; }, {