summaryrefslogtreecommitdiff
path: root/launchd
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2022-06-19 20:09:55 -0700
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2022-06-19 20:13:28 -0700
commit6bdce31401e3caf10242f1e8a4855b2c8e90ea13 (patch)
tree737b591383cb5486aeacbadb7a0aab62be26d0fa /launchd
parentbf1d55c1aeef4d4755e1dbaf05cd625e48780bfb (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 'launchd')
-rwxr-xr-xlaunchd/privileged_startx/20-font_cache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/launchd/privileged_startx/20-font_cache.cpp b/launchd/privileged_startx/20-font_cache.cpp
index 6d43e10..1048b15 100755
--- a/launchd/privileged_startx/20-font_cache.cpp
+++ b/launchd/privileged_startx/20-font_cache.cpp
@@ -27,9 +27,9 @@ XCOMM promote the sale, use or other dealings in this Software without
XCOMM prior written authorization.
if [ -x BINDIR/font_cache ] ; then
- BINDIR/font_cache -s &
+ BINDIR/font_cache -s
elif [ -x BINDIR/font_cache.sh ] ; then
- BINDIR/font_cache.sh -s &
+ BINDIR/font_cache.sh -s
elif [ -x BINDIR/fc-cache ] ; then
- BINDIR/fc-cache &
+ BINDIR/fc-cache
fi