Packages: Remove /usr/games from PATH to fix issues with pacman game

This commit is contained in:
Dylan Araps 2016-11-25 23:50:26 +11:00
parent 6e8ff7b59f
commit b2a70325e9

View file

@ -357,6 +357,14 @@ get_uptime() {
} }
get_packages() { 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 case "$os" in
"Linux" | "iPhone OS" | "Solaris" | "GNU") "Linux" | "iPhone OS" | "Solaris" | "GNU")
type -p pacman >/dev/null && \ type -p pacman >/dev/null && \