diff options
author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2022-06-19 20:09:55 -0700 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2022-06-19 20:13:28 -0700 |
commit | 6bdce31401e3caf10242f1e8a4855b2c8e90ea13 (patch) | |
tree | 737b591383cb5486aeacbadb7a0aab62be26d0fa /startx.cpp | |
parent | bf1d55c1aeef4d4755e1dbaf05cd625e48780bfb (diff) |
darwin: Wait for font_cache to complete to avoid a race with `xset fb=`
Partially fixes: https://github.com/XQuartz/XQuartz/issues/216
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Diffstat (limited to 'startx.cpp')
-rw-r--r-- | startx.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -87,17 +87,17 @@ fi XCOMM First, start caching fonts if [ x`defaults read $X11_PREFS_DOMAIN cache_fonts` = x1 ] ; then if [ -x $bindir/font_cache ] ; then - $bindir/font_cache & + $bindir/font_cache elif [ -x $bindir/font_cache.sh ] ; then - $bindir/font_cache.sh & + $bindir/font_cache.sh elif [ -x $bindir/fc-cache ] ; then - $bindir/fc-cache & + $bindir/fc-cache fi fi if [ -x __libexecdir__/privileged_startx ] ; then - # Don't push this into the background because it can cause - # a race to create /tmp/.X11-unix + XCOMM Don't push this into the background because it can cause + XCOMM a race to create /tmp/.X11-unix __libexecdir__/privileged_startx fi |