Package an optionally installed Shell script that adds .../contour.app/...
to /etc/paths.d
#1615
Labels
build
enhancement
New feature or request
feature-request
User requested features
platform: macOS
topics that directly address macOS platform
Abstract
The package layout and installation logic on Mac is... unconventional, to say the least. It is common, however, that someone would want to spawn a separate contour process (if, for nothing else,
contour debug ...
; but I also regularly startcontour profile white
for screenshotting into presentations — so the "Start new Window" keybind action is not satisfactory), but on Mac, it always gives command not found.Specification
In an installer
.dmg
it is possible to package a.pkg
file which runs custom installation actions (e.g., Citrix is installed this way, but so is Google Drive IIRC).If doing a full-on
.pkg
is infeasible, we should package a script which, when double-clicked andsudo
-authenticated by the user, optionally (i.e., not in part of the "copying" ofcontour.app
to/Applications
) installs a shell script under/etc/paths.d
:This way,
/usr/libexec/path_helper
will returncontour
's installation path as well, and if this is appropriately sourced into the spawned shell profile,contour
becomes an executable command as-is.The text was updated successfully, but these errors were encountered: