intgr / ego

Alter Ego: run Linux desktop applications under a different local user
MIT License
128 stars 1 forks source link

Doas support #160

Open domodoiddd opened 6 months ago

domodoiddd commented 6 months ago

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 commented 6 months ago

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