diff --git a/neofetch b/neofetch index 6e4cd890..329724de 100755 --- a/neofetch +++ b/neofetch @@ -1297,7 +1297,10 @@ get_packages() { # List these last as they accompany regular package managers. has "flatpak" && tot flatpak list - has "snap" && tot snap list && ((packages-=1)) + + # Snap hangs if the command is run without the daemon running. + # Only run snap if the daemon is also running. + has "snap" && ps -e | grep -Fm 1 "snapd" && tot snap list && ((packages-=1)) ;; "Mac OS X" | "MINIX")