fflewddur / tophat

View CPU, memory, disk, and network activity in the GNOME top bar.
https://extensions.gnome.org/extension/5219/tophat/
GNU General Public License v3.0
349 stars 26 forks source link

Turn off monitoring of /proc and /sys files if they are not readable #62

Closed fflewddur closed 1 year ago

fflewddur commented 1 year ago

As reported by nekohayo, TopHat may continue to try to read /proc or /sys files after encountering errors, e.g.:

gnome-shell[832185]: [TopHat] Error reading /sys/class/hwmon/hwmon2/temp1_input: Error opening file /sys/class/hwmon/hwmon2/temp1_input: No such file or directory

In this case, we should probably disable additional probing and disable 'n/a' for the sensor reading in the UI. Probing for these sensors should only happen when TopHat is started.