paradoxxxzero / gnome-shell-system-monitor-applet

Display system informations in gnome shell status bar, such as memory usage, cpu usage, network rates…

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mipmip opened this issue · comments

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?

commented

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

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