indicator-sensors
indicator-sensors copied to clipboard
udisks2 ATA power check triggers authentication prompt on inactive users
As per the org.freedesktop.udisks2.ata-check-power UDisks2 Polkit policy, ATA power-check calls from inactive users require privilege elevation.
The udisks_drive_ata_call_pm_get_state_finish call in plugins/udisks2/is-udisks2-plugin.c triggers the said privilege elevation, thus causing several authentication prompts to appear after unlocking the session.

Edit: it also seems to occur with udisks_drive_ata_call_smart_update_finish and a couple other methods, hence the several authentication prompts showing up after unlocking.
Is this still occurring?
Still occurs. Tested with release 1.1 (2a00714be9b85f503a6d04bd9edc2a128c02762c) on my old dusty laptop running Ubuntu Xenial (16.04 LTS).
Can you confirm which desktop environment you are running and whether you are using the snap or if you built this yourself (or whatever means you used to install indicator-sensors)?
Running on Ubuntu 16.04 LTS with Unity DE.
This is how I tested it:
git clone https://github.com/alexmurray/indicator-sensors.git && cd indicator-sensors
git reset --hard 2a00714be9b85f503a6d04bd9edc2a128c02762c
./autogen && sudo make install
/usr/local/bin/indicator-sensors