![]() |
There are several pages for it, but I have this one working:
https://github.com/dlitz/xtoolwait
Xtoolwait notably decreases the startup time of an X session by reducing the load on the X server and Linux.
It starts an X client in the background, waits for a window to be mapped on the root window, and then exits. It can improve performance for users who start a bunch of X clients automatically (for example, xterm, xlock, xconsole, whatever) when the X session starts.
--
See my .xinitrc for how I use it.
- 2018-12-02 - from git on Devuan_ascii_2.0.0-rc_i386_dvd-1
-
2007-07-14 - 1.3 on PCLinuxOS 2007
2018-12-02 - from git ∞
\apt-get install xutils-dev libx11-dev libxtst-dev \xmkmf # This produces an error, but it is safe to ignore it. \make \make install \make install.man
Though the first make
gives me errors, they can apparently be ignored:
Spoiler
gcc -m32 -g -O2 -fno-strict-aliasing -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -c -o xtoolwait.o xtoolwait.c In file included from /usr/include/stdio.h:27:0, from xtoolwait.c:20: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ rm -f xtoolwait gcc -m32 -o xtoolwait -g -O2 -fno-strict-aliasing xtoolwait.o -lXext -lX11 rm -f xtoolwait._man if test -z "true" ; then \ cd `dirname xtoolwait` && \ ln -s `basename xtoolwait.man` `basename xtoolwait._man`; \ else \ cpp -undef -traditional -D__apploaddir__=/etc/X11/app-defaults -D__filemansuffix__=5x -D__osfilemansuffix__=5 -D__libmansuffix__=3x -D__oslibmansuffix__=3 -D__mansuffix__=1x -D__osmansuffix__=1 -D__syscallmansuffix__=2x -D__ossysmansuffix__=2 -D__gamemansuffix__=6x -D__osgamemansuffix__=6 -D__miscmansuffix__=7x -D__osmiscmansuffix__=7 -D__admmansuffix__=8x -D__osadmmansuffix__=8 -D__miscmansuffix__=7x -D__osmiscmansuffix__=7 -D__drivermansuffix__=4x -D__osdrivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/usr -D__xconfigfile__=xorg.conf -D__xconfigdir__=/usr/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__appmansuffix__=1x -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'` X.Org" \ < xtoolwait.man | sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^#line *[0-9][0-9]* *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\\/' >xtoolwait._man; \ fi <stdin>:57:0: error: invalid preprocessing directive #Startup <stdin>:61:0: error: invalid preprocessing directive #Restore <stdin>:62:0: error: invalid preprocessing directive #Do <stdin>:69:0: error: invalid preprocessing directive #Wait
Maybe it works, maybe it doesn't. I don't think it's the answer to the problem I have, which is to have multiple terminals using dialog to appear in a specific order.
Last updated 2020-02-11 at 23:06:30