Commit 707601bb authored by Eliezio Oliveira's avatar Eliezio Oliveira

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

parent 98061ca6
...@@ -1391,7 +1391,7 @@ get_resolution() { ...@@ -1391,7 +1391,7 @@ get_resolution() {
"Mac OS X") "Mac OS X")
if type -p screenresolution >/dev/null; then 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??@/ @ }" resolution="${resolution//x??@/ @ }"
else else
......
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