leahneukirchen/xtools

[Feature request]: support doas

paper42 opened this issue · 2 comments

I think it would be good to add doas support to scripts like xi.

How do you propose it be done? Fallback if sudo not available? Or be opportunistic and try for sudo as default?

Maybe it could look if /etc/doas.conf exists, and if it does, prefer doas. Because if doas isn't configured, the file will not be there.