Skip to content

Commit

Permalink
Possible solution for issue #42.
Browse files Browse the repository at this point in the history
  • Loading branch information
KittyKatt committed Jun 14, 2013
1 parent cd7b941 commit 9e3ca6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions screenfetch-dev
Original file line number Diff line number Diff line change
Expand Up @@ -1111,9 +1111,9 @@ detectwm () {
if [[ -n ${DISPLAY} && ${distro} != "Mac OS X" && ${distro} != "Cygwin" ]]; then
if type -p xprop >/dev/null 2>&1; then
WM=$(xprop -root _NET_SUPPORTING_WM_CHECK)
if [[ "$WM" =~ "not found" ]]; then
if [[ "$WM" =~ '[Nn]ot found' ]]; then
WM="Not Found"
elif [[ "$WM" =~ "invalid window id format" ]]; then
elif [[ "$WM" =~ '[Ii]nvalid window id format' ]]; then
WM="Not Found"
elif [[ "$WM" =~ "no such" ]]; then
WM="Not Found"
Expand Down

0 comments on commit 9e3ca6d

Please sign in to comment.