Commit 00b45307 authored by Dylan Araps's avatar Dylan Araps

Supress xprop errors if xprop isn't installed

parent d5fbd1f1
...@@ -820,8 +820,8 @@ getde () { ...@@ -820,8 +820,8 @@ getde () {
getwm () { getwm () {
if [ -n "$DISPLAY" ] && [ "$os" != "Mac OS X" ]; then if [ -n "$DISPLAY" ] && [ "$os" != "Mac OS X" ]; then
id="$(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}')" 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)" wm="$(xprop -id "$id" -notype -f _NET_WM_NAME 8t 2>/dev/null)"
wm=${wm/*_NET_WM_NAME = } wm=${wm/*_NET_WM_NAME = }
wm=${wm/\"} wm=${wm/\"}
wm=${wm/\"*} wm=${wm/\"*}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment