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

Doas support #160

Open
domodoiddd opened this issue Apr 20, 2024 · 1 comment
Open

Doas support #160

domodoiddd opened this issue Apr 20, 2024 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@domodoiddd
Copy link

domodoiddd commented Apr 20, 2024

Are there any plans to support doas besides sudo? I want to use ego in dmenu/tofi scripts, but I can't use ego in these scripts without sudo/doas, and I don't use sudo on my personal machines, if doas support is not so simple to do, is there any idea how to avoid this:

==== AUTHENTICATING FOR org.freedesktop.machine1.host-shell ====
Authentication is required to acquire a shell on the local host.
Multiple identities can be used for authentication:
 1.  ...
 2. ...
Choose identity to authenticate as (1-6): 2
Password:
==== AUTHENTICATION COMPLETE ====

I want something like this: ego --user $user --user_password $user_password $command

@intgr
Copy link
Owner

intgr commented Apr 24, 2024

Hi! I haven't used doas, but I suspect adding doas support to ego wouldn't be difficult. But I don't have much interest to do it myself.

is there any idea how to avoid this:
==== AUTHENTICATING FOR org.freedesktop.machine1.host-shell ====

You can create a Polkit policy to avoid the password prompt entirely. Have a look at the "Avoid password prompt" section of README: https://github.com/intgr/ego/blob/master/README.md#avoid-password-prompt

@intgr intgr added enhancement New feature or request question Further information is requested labels Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants