summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2012-07-24 08:47:29 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2012-07-24 08:47:29 -0700
commitbfed997da5f083e3ddfbda440e114d1261d18b14 (patch)
treef8718a62134f896752e771ff2065899bac62a91c
parent8156aad786754499f4636104aa5bd8a27a281448 (diff)
XQuartz: Fix an issue where -dpi was not being passed to the server despite being set
For some reason 'defaults' sometimes shows dpi in quotes and sometimes doesn't. Regression-from: 335937217a51e5e159a14463e0b1e3aedf35c6be Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--startx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/startx.cpp b/startx.cpp
index cd795c7..c595b84 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -128,7 +128,7 @@ fi
XCOMM The second check is the real one. The first is to hopefully avoid
XCOMM needless syslog spamming.
-if defaults read $X11_PREFS_DOMAIN 2> /dev/null | grep -q '"dpi"' && defaults read $X11_PREFS_DOMAIN dpi > /dev/null 2>&1 ; then
+if defaults read $X11_PREFS_DOMAIN 2> /dev/null | grep -q 'dpi' && defaults read $X11_PREFS_DOMAIN dpi > /dev/null 2>&1 ; then
defaultserverargs="$defaultserverargs -dpi `defaults read $X11_PREFS_DOMAIN dpi`"
fi