aboutsummaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 13:31:04 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 13:31:04 -0500
commit25cd12d0e062506f893a10595ea061367c95275b (patch)
tree116e322fa7a5645ce623df68046325d01d274491 /custom
parent4bf75780c4b87aae173ae0d7125e8917cdc820c5 (diff)
downloaddotemacs-25cd12d0e062506f893a10595ea061367c95275b.tar.gz
dotemacs-25cd12d0e062506f893a10595ea061367c95275b.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 'custom')
0 files changed, 0 insertions, 0 deletions