-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow GUI un/installs #24377
Comments
We don't need |
Good point, completely missed that, as the ideas to rename and add |
I think this is a great direction 👍 |
Perhaps a note should be added to the relevant brew cask info cask if the installation requires a GUI? |
@numbermaniac Agreed. Updated the top post. |
I'm fine with this as long as we aren't blocking on the GUI installer. Otherwise we'll break automated install scripts. |
How so? That’s what If you say we should In sum, as I see it, making not calling a GUI the default (either as an adjustment period or ever) is preferable to making GUI installs non-blocking. |
In that case, I'd prefer that we make this an opt-in feature. Many of our users use scripts to automate the installation of many casks at once, usually to bootstrap a new machine. If we change the default behavior to opening GUI installers and blocking on user input, we're violating those users' expectations in a big way, and probably setting ourselves up for a nice influx of "bug" reports. |
Changing the suggestion, then, and updating the top post. Making non-GUI the default, and add a |
Change from |
Does anyone volunteer mentorship on this ticket? I have small xp in Ruby, I'm an iOS Dev by myself with 6 years of xp. |
@yurikoles, if you decide to tackle this, we will certainly provide some guidance. |
@reitermarkus what is the better way to communicate? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@reitermarkus I had dropped you an email. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Introduction:
Since the inception of Homebrew-Cask, we mostly (some have slipped through on occasion, and some are still present, even) haven’t allowed casks to call GUIs when installing and uninstalling, in the name of automation.
However, in some cases it actually prevents desirable automation: not auto-opening
installer manual:
targets and not using tool-provided uninstallers come to mind.I postulate most users would actually prefer these GUI actions to be called automatically in most cases, the most notable exception being when reinstalling a system (since a bunch of casks are installed).
It also seems more in line with the goal of #13201 of making our automation as close to the manual installation as possible.
Proposal:
Change policy and start allowing GUIs to be called, but only allow GUIs as the last resort.
When calling a GUI is necessary for an action, allow the user to pick if a GUI will be called or the action will be interrupted. Make not allowing GUIs the default, for backwards compatibility.
Implement
--allow-gui
as a flag to be given at runtime or inHOMEBREW_CASK_OPTS
. It means “If this action needs a GUI, run it; if not, output a warning on how to proceed manually” (i.e. the same instructions we have now).Rename
installer manual:
toinstaller gui:
.Add
uninstall gui:
. It runs in addition to the other flags, and before them (otherwise it could very well be removed by them).When we call
install
/uninstall
and the correspondinginstaller gui:
oruninstall gui:
exists, check if--allow-gui
is set and act accordingly.When opening GUIs, do so with
open -W
. This way the command will be blocked until it finishes, preventing a barrage of GUIs left open when installing multiple apps and allowing for&&
and other subsequent commands.brew cask info
should inform ifinstall
/uninstall
needs a GUI.Checklist:
--allow-gui
flag.installer manual:
.uninstall gui:
.info
.installer manual:
withinstaller gui:
in casks.uninstall gui:
toadobe-creative-cloud
.uninstall gui:
tolittle-snitch
.uninstall gui:
toteamviewer
.uninstall gui:
toteamviewer-host
.Pinging @caskroom/maintainers, but any user is welcome to chime in.
The text was updated successfully, but these errors were encountered: