Skip to content
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

`launchctl:` does not support wildcards, but a few casks use it anyway: avast-secureline-vpn, boom, box-drive, paragon-extfs, paragon-ntfs #79661

Open
varenc opened this issue Mar 31, 2020 · 1 comment

Comments

@varenc
Copy link
Contributor

@varenc varenc commented Mar 31, 2020

General troubleshooting steps

Description of issue

The lanchtctl: key in the uninstall stanza does not support wildcards, but a few Casks attempt to use this anyway. This ends up making it a no-op since that this string doesn't match any launchd job ids.

PR #79620 fixes this for the sound-control cask, but these casks all have the same problem:

From brew cask --debug uninstall you can see that the * is escaped, but even if it wasn't, launchctl doesn't have any built in support for regexes so it wouldn't work in either case. See #79620 for a little more discussion on this issue.

...
==> Removing launchctl service com.staticz.soundcontrol.*
/bin/launchctl list com.staticz.soundcontrol.\*
/usr/bin/sudo -E -- /bin/launchctl list com.staticz.soundcontrol.\*

To fix this you'll need to install each cask, identify the full names of the launchd jobs it installs, and then enumerate all the job ids in the cask. Or improve launchctl: so that it accepts wildcards.

@vitorgalvao
Copy link
Member

@vitorgalvao vitorgalvao commented Mar 31, 2020

To fix this you'll need to install each cask, identify the full names of the launchd jobs it installs, and then enumerate all the job ids in the cask.

For anyone tackling this task, run "$(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-cask/developer/bin/list_loaded_launchjob_ids" to identify all loaded launchd jobs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.