Simple Scan asks an administration password while detecting scanners
If I have set an administration password and I start Simple Scan, it tries to start avahi-daemon.service
, which makes the polkit agent (GNOME Shell) ask my admin password:
polkitd(authority=local)[3598]: Operator of unix-session:2 successfully authenticated as unix-user:amnesia to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.193 [simple-scan] (owned by unix-user:amnesia)
Dec 11 13:58:10 amnesia dbus-daemon[3592]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service' requested by ':1.196' (uid=1000 pid=13719 comm="simple-scan ")
Dec 11 13:58:10 amnesia dbus-daemon[3592]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service is masked.
I can use my USB scanner after either pressing Cancel, or typing my password.
And if I have set no administration password: I'm asked for a password (which I don't have) and after pressing Cancel I can use my scanner.
This has also been reported, together with some more research, against Ubuntu: https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/1926014