diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-10 13:31:04 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-10 13:31:04 -0500 |
| commit | 32e57be15a48aa24470e9f3bc6a206c7624bd6b0 (patch) | |
| tree | 02756fd3a3353e509fee2c4c96aa31c68e939b4e /modules/httpd-config.el | |
| parent | 6545605fa965d649defc0bb01e8c040afbbcc529 (diff) | |
| download | dotemacs-32e57be15a48aa24470e9f3bc6a206c7624bd6b0.tar.gz dotemacs-32e57be15a48aa24470e9f3bc6a206c7624bd6b0.zip | |
refactor(dirvish): extract cj/--file-manager-program-for helper
`cj/dirvish-open-file-manager-here' had its platform-dispatch -- xdg-open / open / explorer / shell fallback -- inline as a four-arm cond branching on `executable-find' and `system-type'. Lift the choice into `cj/--file-manager-program-for', a pure function from (HAS-XDG-OPEN-P SYSTEM-TYPE) to a program-name string or nil. The wrapper resolves the live values, asks the helper, and either calls the program or falls back to a shell-command.
Six Normal/Boundary tests cover the four return shapes (xdg-open across system types, darwin/windows-nt without xdg-open, the nil fallback for plain Linux without xdg-open and for unknown system-types like Haiku).
Diffstat (limited to 'modules/httpd-config.el')
0 files changed, 0 insertions, 0 deletions
