fsphil / fswebcam

A neat and simple webcam app
http://www.sanslogic.co.uk/fswebcam/
GNU General Public License v2.0
414 stars 87 forks source link

Sudo permission #63

Open arsalanfiroozi opened 1 month ago

arsalanfiroozi commented 1 month ago

fswebcam asks for sudo permission even if I run it with sudo. This makes it useless in any script. Having sudo permission is fine. But asking with a pop up window even when it has been run with sudo is weird.

fsphil commented 1 month ago

It'll be something in your script. How are you calling fswebcam?

arsalanfiroozi commented 1 month ago

There is no need to use a script to see the problem. run fswebcam i.jpg and sudo fswebcam i.jpg

the second one fails for me (Using ubuntu)

fsphil commented 1 month ago

sudo will always prompt you for a password, that's normal. Normally you shouldn't need it anyway - fswebcam shouldn't really be run as root.