diff --git a/neofetch b/neofetch index 683b0650..86e62776 100755 --- a/neofetch +++ b/neofetch @@ -357,6 +357,14 @@ get_uptime() { } get_packages() { + # Remove /usr/games from $PATH. + # This solves issues with neofetch opening the + # 'pacman' game. + local PATH=":${PATH}:" + local PATH="${PATH/':/usr/games:'/:}" + local PATH="${PATH%:}" + local PATH="${PATH#:}" + case "$os" in "Linux" | "iPhone OS" | "Solaris" | "GNU") type -p pacman >/dev/null && \