sveinbjornt / Sloth

Mac app that shows all open files, directories, sockets, pipes and devices in use by all running processes. Nice GUI for lsof.
https://sveinbjorn.org/sloth
BSD 3-Clause "New" or "Revised" License
8.31k stars 158 forks source link

A way to use Touch ID instead of having to enter password every time #22

Closed melyux closed 1 year ago

melyux commented 2 years ago

Sloth requires sudo privileges to see the list of open files, but won't take Touch ID. You have to type your password every time, and it expires after a few minutes so you have to do it again.

If the user enables Touch ID for sudo, he should be able to use Touch ID. Even for apps that don't specifically go out of their way to support Touch ID natively, them using sudo internally is enough to bring up the Touch ID prompt successfully (like Balena Etcher).

Can Sloth also do this instead of exclusively asking for the password?

melyux commented 1 year ago

Any word?

sveinbjornt commented 1 year ago

This is not going to happen. Sloth does not use sudo.

melyux commented 1 year ago

There's gotta be some way to use the Touch ID API or something directly then?

sveinbjornt commented 1 year ago

If typing the password really bothers you, just run Sloth via sudo:

sudo ./Applications/Sloth.app/Contents/MacOS/Sloth