At Tue, 7 Jun 2016 18:19:05 +0200, Rhialto <[email protected]> wrote: Subject: Re: menus stay where first activated (on XQuartz) > > On Sun 22 May 2016 at 19:07:41 -0700, Greg A. Woods wrote: > > when a native OSX Xquartz compiled ctwm-3.8.2 runs locally > > How do you run ctwm locally on the Mac? At work I have XQuartz too but > if I try to start ctwm I get
I just run Xquartz in full-screen mode and have my ~/.xinitrc run in the
normal way as I have since forever, and the last thing it does is to
"exec ctwm", as it has for decades. :-)
I presume the Xquartz start-up still runs "startx" to invoke a user's
~/.xinitrc but I haven't really looked at it since I first got it
working several years ago. The Xquartz(1) manual page still mentions
xinit(1) in the "See Also" section, and indeed there is a
/opt/X11/bin/startx script that runs "/opt/X11/bin/xinit". Yup, I see
something in launchctl about org.macosforge.xquartz.startx and the ugly
plist file for that service seems to invoke /opt/X11/bin/startx with
/opt/X11/bin/Xquartz as the server.
You probably have quartz-wm running if you haven't set up your xinitrc
to start any different window manager. I doubt you can kill it without
causing xinit to exit and thus also terminating your Xserver. The fancy
new "--replace" feature in ctwm is useless at replacing an existing
process that has to exit -- Unix doesn't allow such shenanigans. If
only this were Multics.... :-)
The default /opt/X11/lib/X11/xinit/xinitrc sources the script fragments
that can be found in /opt/X11/lib/X11/xinit/xinitrc.d/ and the last one
will exec either a ${USERWM} (if found) or xquartz-wm. The script
fragment sourced just before the last one will source all the fragments
in ~/.xinitrc.d/*.sh, so you can set USERWM=ctwm in something like
~/.xinitrc.d/set-userwm.sh
Or just write your own ~/.xinitrc like I did. :-)
> By the way, the first time I tried it, XQuartz miserably fails with
> xeyes. (Somehow it seems to work better now). So I don't expect it to be
> perfect and anything that goes wrong may easily be an XQuartz problem.
I have never had any trouble with xeyes with any version past or present
of Xquartz or Apple OSX X11 before it. I can move it, resize it,
iconify it, de-iconify it, etc. I usually start it from remote systems
to make sure I've got the DISPLAY setting right and authentication
working and to test the latency.
--
Greg A. Woods
Planix, Inc.
<[email protected]> +1 250 762-7675 http://www.planix.com/
pgpYzR5wEiv3p.pgp
Description: PGP signature
