summaryrefslogtreecommitdiff
path: root/startx.cpp
diff options
context:
space:
mode:
authorChangyeon Lee <cyeon.lee@samsung.com>2014-04-17 14:39:58 +0900
committerChangyeon Lee <cyeon.lee@samsung.com>2014-04-17 14:46:41 +0900
commitba6c5bef58d88aab1584107543b81a2930451a1f (patch)
treeaa0e1ab02744850352e42ecbd629ad5a8f5c98d8 /startx.cpp
parentd7fbb5c11b41bb71b9173daea2f48d855bc61316 (diff)
parent8d5e38de0819168970669f24379c21338616184e (diff)
downloadxinit-accepted/tizen_3.0.2014.q3_common.tar.gz
xinit-accepted/tizen_3.0.2014.q3_common.tar.bz2
xinit-accepted/tizen_3.0.2014.q3_common.zip
Change-Id: Ibe6f53547397a2beaf4747ef8a442b43e41544fb Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
Diffstat (limited to 'startx.cpp')
-rw-r--r--startx.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/startx.cpp b/startx.cpp
index c92c51c..c595b84 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -126,7 +126,9 @@ if [ x`defaults read $X11_PREFS_DOMAIN nolisten_tcp` = x1 ] ; then
defaultserverargs="$defaultserverargs -nolisten tcp"
fi
-if defaults read $X11_PREFS_DOMAIN dpi > /dev/null 2>&1 ; then
+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
defaultserverargs="$defaultserverargs -dpi `defaults read $X11_PREFS_DOMAIN dpi`"
fi