paradoxxxzero / gnome-shell-system-monitor-applet

Display system informations in gnome shell status bar, such as memory usage, cpu usage, network rates…
GNU General Public License v3.0
1.75k stars 324 forks source link

Not working on NixOS because /usr/local does not exist #725

Open mipmip opened 2 years ago

mipmip commented 2 years ago

This extension does not work on NixOS because NixOS doesn't comply with the FHS. /usr/local does not exist on NixOS.

A simple check if a path exists before checking if path is mount point could prevent a fatal error.

A more generic method to find all filesystem mounts seems more constructive. The extension now checks for some common mount points. Wouldn't it be better to query the current mount points e.g. by reading /etc/mtab?

sokai commented 1 year ago

+1 from me (also to push this issue a little bit)

FYI: In Nixos this currently is fixed with this patch.