From 00b45307bc2657478f66562982036b42f3be77be Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 12 Jun 2016 13:18:16 +1000 Subject: [PATCH] Supress xprop errors if xprop isn't installed --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index d5d44c92..d3080d40 100755 --- a/neofetch +++ b/neofetch @@ -820,8 +820,8 @@ getde () { getwm () { if [ -n "$DISPLAY" ] && [ "$os" != "Mac OS X" ]; then - id="$(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')" - wm="$(xprop -id "$id" -notype -f _NET_WM_NAME 8t)" + id="$(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}' 2>/dev/null)" + wm="$(xprop -id "$id" -notype -f _NET_WM_NAME 8t 2>/dev/null)" wm=${wm/*_NET_WM_NAME = } wm=${wm/\"} wm=${wm/\"*}