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

setup-environment - Cancel button not working #34

Open
zoltan-ongithub opened this issue Jun 17, 2016 · 1 comment
Open

setup-environment - Cancel button not working #34

zoltan-ongithub opened this issue Jun 17, 2016 · 1 comment
Assignees

Comments

@zoltan-ongithub
Copy link
Contributor

Steps to reproduce:

Run:

$ . setup-environment

Press "Cancel" during build target selection.

Issue: The setup scripts still continues. "Cancel" script seems to have undefined behaviour.

@ndechesne
Copy link
Contributor

I quickly looked into that.. it's kind of not working 'by design'.. not sure what we want to do. for some reasons (which I don't know..) we have support for both whiptail and dialog tools. and we fallback from whiptail to dialog.

So when we hit cancel , we try the alternative option.. i agree that it's buggy in the sense that if you cancel the last alternative , it should abort and it doesn't..

from a user point of view , i think it's bad the way it's done. It's ok to support multiple backend tools, nothing wrong, but we should not fallback like that.

what I can propose is:

  1. try whiptail or dialog (not both), e.g. try the one that is installed
  2. implement a non graphical fallback in case none of them is installed

and if user hit cancel in step 1, then really cancel and abort immediately.

The other option is to remove the cancel button ;-)

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

2 participants