From f1933ef4b012de715e637f489bbcb89d944496f8 Mon Sep 17 00:00:00 2001 From: "Christopher R. Nelson" Date: Sun, 1 Nov 2026 00:27:57 -0400 Subject: Save the chosen wallpaper and restore it at login Menu items now call the program back with --set FILE, which runs the configured command and, if it exits 0, saves the path to $XDG_STATE_HOME/wallpaper-switcher/current. --restore sets the saved wallpaper again, for use in labwc/openbox autostart. Items use the binary's absolute path so the menu works when it is not on PATH. Paths from the command line are parsed as native namestrings so file names containing * or [ are not treated as wildcards. Co-Authored-By: Claude Opus 5.5 --- wallpaper-switcher.asd | 1 + 1 file changed, 1 insertion(+) (limited to 'wallpaper-switcher.asd') diff --git a/wallpaper-switcher.asd b/wallpaper-switcher.asd index 6df70b7..22aa511 100644 --- a/wallpaper-switcher.asd +++ b/wallpaper-switcher.asd @@ -8,6 +8,7 @@ :serial t :components ((:file "package") (:file "config") + (:file "state") (:file "menu") (:file "main")) :build-operation "program-op" -- cgit v1.2.3