From c340932db548d1a3d4fc5bbc682b7730e5b2cf4a Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 17 Dec 2008 13:00:23 -0800 Subject: Apple: Allow defaults option that maps to a -dpi server command line in startx --- startx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/startx.cpp b/startx.cpp index 529366d..8a44965 100644 --- a/startx.cpp +++ b/startx.cpp @@ -128,6 +128,10 @@ 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 ; then + defaultserverargs="$defaultserverargs -dpi `defaults read $X11_PREFS_DOMAIN dpi`" +fi + for ((d=0; ; d++)) ; do [[ -e /tmp/.X$d-lock ]] || break done -- cgit v1.2.3