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

Sudo with grahical password prompt? #87

Open
fosspill opened this issue May 24, 2021 · 3 comments
Open

Sudo with grahical password prompt? #87

fosspill opened this issue May 24, 2021 · 3 comments

Comments

@fosspill
Copy link

Is there any way to use gksu, for instance, instead of sudo to prompt for the password?

The use case would be creating a shortcut in a start menu which starts Firefox through vopono

@jamesmcm
Copy link
Owner

This is a good idea, in theory there's only a few places it needs to change:

exec.rs
384:                std::process::Command::new("sudo")

netns.rs
115:            handle.args(&["sudo", "-Eu", user.as_ref().unwrap()]);
427:                    std::process::Command::new("sudo")

util/mod.rs
286:        let _status = Command::new("sudo")

The tricky part is that we would want to set it in the config file and then it needs to "globally" available.

@fosspill
Copy link
Author

That's a tricky decision to make, to be honest. Would it be for power users to be able to make their own customization or would it be to make it easier for users?

If it's the first one I think a simple env variable should cut it. A self defined sudo command (and arguments, presumably).

@jamesmcm
Copy link
Owner

jamesmcm commented Jun 1, 2021

Yeah, I think it can be added as like a configuration option with different options (sudo, please, gksu, and polkit keyring stuff).

I need to take a look at how the latter works though.

Eventually it'd be cool to create a GUI for vopono as a like a toolbar icon to handle these sorts of cases even easier.

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