MacOS screenresolution: accepts output from stdout and stderr. Closes #662

This commit is contained in:
Eliezio Oliveira 2017-03-04 20:30:14 -03:00
parent 98061ca6c0
commit 707601bbf7

View file

@ -1391,7 +1391,7 @@ get_resolution() {
"Mac OS X")
if type -p screenresolution >/dev/null; then
resolution="$(screenresolution get | awk '/Display/ {printf $6 "Hz, "}')"
resolution="$(screenresolution get 2>&1 | awk '/Display/ {printf $6 "Hz, "}')"
resolution="${resolution//x??@/ @ }"
else