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

Ask for sudo on the start #203

Open
Acisama opened this issue Dec 29, 2024 · 6 comments
Open

Ask for sudo on the start #203

Acisama opened this issue Dec 29, 2024 · 6 comments

Comments

@Acisama
Copy link

Acisama commented Dec 29, 2024

Is there some way to make it so it asks for the password at the start of the upgrade?

Because if you download many things it takes a while and sometimes I just want to do other stuff during that time, but sudo times out after 30 seconds.
Or can I use some other method to achieve this?

@viperML
Copy link
Owner

viperML commented Dec 29, 2024

nh os switch --ask or sudo nh os switch -R

@HirschBerge
Copy link

I think the best solution would just be to send a notification. This was originally stated in this comment as to be done in #107 but that obviously never happened. Can this idea be revisited?

@viperML
Copy link
Owner

viperML commented Jan 3, 2025

The notification should be triggered for long builds (e.g longer than 60s) and use some cross-platform crate that supports darwin

@HirschBerge
Copy link

Not sure if you were actually asking for recommendations, or just jotting it down for future, but notify seems to fit the criteria.

Specifically mentions that it was originally targeted for darwin. I've used it in small personal projects and it works well.

@viperML
Copy link
Owner

viperML commented Jan 4, 2025

PR's are welcome

@HirschBerge
Copy link

Can you point me in the direction of the correct portion of the code base. I can take a look when I have time.

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

No branches or pull requests

3 participants