summaryrefslogtreecommitdiff
path: root/modules/selection-framework.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
commit6db12a7e2fc4d5eeab3d6b3743489d2bf2215b8a (patch)
treea68be4b1a8a78afc81bbd968a85b68164c5637c4 /modules/selection-framework.el
parent69403ee88b7d875b1e9dbffd7aaadf1328eb4dae (diff)
downloaddotemacs-6db12a7e2fc4d5eeab3d6b3743489d2bf2215b8a.tar.gz
dotemacs-6db12a7e2fc4d5eeab3d6b3743489d2bf2215b8a.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/selection-framework.el')
0 files changed, 0 insertions, 0 deletions