<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-dirvish-config-wallpaper-program.el, branch load-graph-classify-start</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=load-graph-classify-start</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=load-graph-classify-start'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-05-10T18:30:08+00:00</updated>
<entry>
<title>refactor(dirvish): extract cj/--wallpaper-program-for helper</title>
<updated>2026-05-10T18:30:08+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-10T18:30:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=6545605fa965d649defc0bb01e8c040afbbcc529'/>
<id>urn:sha1:6545605fa965d649defc0bb01e8c040afbbcc529</id>
<content type='text'>
`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.
</content>
</entry>
</feed>
