aboutsummaryrefslogtreecommitdiff
path: root/modules/system-lib.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 13:30:08 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 13:30:08 -0500
commit1d516c13af7048a6e963567522784f7c92bbf80a (patch)
treec806b1bfb907991d958523d78ea2e8372666ce99 /modules/system-lib.el
parent3eceb8007a5c743f8291eceac1a7395584282962 (diff)
downloaddotemacs-1d516c13af7048a6e963567522784f7c92bbf80a.tar.gz
dotemacs-1d516c13af7048a6e963567522784f7c92bbf80a.zip
refactor(dirvish): extract cj/--wallpaper-program-for helper
`cj/set-wallpaper' had two parallel cond arms hardcoding the X11/Wayland dispatch and the success/failure messages inline. Lift the program-and-args choice into `cj/--wallpaper-program-for' -- a pcase from a display-server symbol to a (PROGRAM ARG...) list, or nil for unknown environments. The wrapper now: detect env, ask helper for the command, surface the right message (unknown server / executable missing / success). Adding a third backend (e.g. xdg-desktop-portal) becomes one pcase clause + one test.
Diffstat (limited to 'modules/system-lib.el')
0 files changed, 0 insertions, 0 deletions