From b2a70325e9df409c7d20bc3a13e5076d89aa3dc7 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 25 Nov 2016 23:50:26 +1100 Subject: [PATCH] Packages: Remove /usr/games from PATH to fix issues with pacman game --- neofetch | 8 ++++++++ 1 file changed, 8 insertions(+) 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 && \