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

Review and revise accessibility methods in postflight mini-DSL #7684

Merged
merged 1 commit into from
Dec 2, 2014

Conversation

rolandwalker
Copy link
Contributor

  • rename remove_accessibility_access to disable_accessibility_access to match corresponding method enable_accessibility_access
  • move TCC.db and .AccessibilityAPIEnabled paths to Cask::Locations
  • remove unneeded backslash from TCC.db path
  • use full paths to touch and sqlite3 utilities
  • reverse conditional so enable/disable logic is consistent
  • sudo is needed when creating .AccessibilityAPIEnabled
  • instead of silent fail, warn that access cannot be safely disabled on Mountain Lion and earlier (it could, but might affect other apps)
  • quoting/whitespace

Todo: the relevant methods are only available in either postflight or preflight, but they should be in both.

Edit:

  • use @command.run instead of system_command which is intended as an external interface

cc @federicobond

@rolandwalker rolandwalker changed the title Review and revise accessibility methods in postflight mini-DSL WIP: Review and revise accessibility methods in postflight mini-DSL Nov 29, 2014
@rolandwalker rolandwalker added the core Issue with Homebrew itself rather than with a specific cask. label Nov 29, 2014
* rename `remove_accessibility_access` to `disable_accessibility_access`
  to match corresponding method `enable_accessibility_access`
* move `TCC.db` and `.AccessibilityAPIEnabled` paths to `Cask::Locations`
* remove unneeded backslash from `TCC.db` path
* use full paths to `touch` and `sqlite3` utilities
* use `@command.run` instead of `system_command` which is intended as an
  external interface
* reverse conditional so enable/disable logic is consistent
* `sudo` is needed when creating `.AccessibilityAPIEnabled`
* instead of silent fail, warn that access cannot be safely disabled on
  Mountain Lion and earlier (it could, but might affect other apps)
* quoting/whitespace
@rolandwalker rolandwalker changed the title WIP: Review and revise accessibility methods in postflight mini-DSL Review and revise accessibility methods in postflight mini-DSL Nov 29, 2014
rolandwalker added a commit that referenced this pull request Dec 2, 2014
Review and revise accessibility methods in postflight mini-DSL
@rolandwalker rolandwalker merged commit 9050f4d into Homebrew:master Dec 2, 2014
@rolandwalker rolandwalker deleted the accessibility_review branch December 2, 2014 10:19
@federicobond
Copy link
Contributor

👍

@miccal miccal removed the core Issue with Homebrew itself rather than with a specific cask. label Dec 23, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants