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

Agree to software license agreements when mounting dmg files #25

Closed
homebysix opened this issue Oct 4, 2015 · 4 comments
Closed

Agree to software license agreements when mounting dmg files #25

homebysix opened this issue Oct 4, 2015 · 4 comments
Milestone

Comments

@homebysix
Copy link
Owner

Right now Recipe Robot requires you to press "y" to agree to the SLA on certain disk images.

[WARNING] Please type Y and press Enter to accept the software license agreement.
Agree Y/N? y

In order to link this up with the Mac app, we'll need to make this non-interactive.

@eahrold
Copy link
Collaborator

eahrold commented Oct 5, 2015

If the prompt is consistent i.e always "Agree Y/N?" then we can handle this with NSTask by inspecting the stdout string, and presenting the user with a alert window and piping the user input from that to stdin.

If the prompt changes that's another story.

@homebysix
Copy link
Owner Author

Here's how AutoPkg does it (in Python): https://github.com/autopkg/autopkg/blob/master/Code/autopkglib/DmgMounter.py#L108-L110

If we make it non-interactive in Python, then we don't have to think about it in the Mac app, right?

@eahrold
Copy link
Collaborator

eahrold commented Oct 5, 2015

Correct. And if it's legally not an issue then I say let's do that.

@sheagcraig
Copy link
Collaborator

My comment has already been brought up by the illustrious Mr. @eahrold . Can we legally accept a license agreement for someone else?

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

No branches or pull requests

3 participants