9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.62k stars 320 forks source link

Error building rio under XQuartz in macOS #546

Open permezel opened 2 years ago

permezel commented 2 years ago

This is mainly to document what I had to do to get rio as the window munger in Darwin, so that others might find it via ググる.

Had to add:

WSYSTYPE=x11
LDFLAGS="-L/opt/X11/lib"

to /usr/local/plan9/LOCAL.config.

Subsequently, ./INSTALL worked and built rio. However, after that, rio would not run:

sloth% 9 rio
rio: it looks like there's already a window manager running;  rio not started

In order to have rio as the window munger:

sloth% cat ~/.xinitrc.d/000-rio.sh 
# try rio wm
[ -x /usr/local/plan9/bin/rio ] && {
    export USERWM=/usr/local/plan9/bin/rio
}
sloth% ls -l ~/.xinitrc.d/000-rio.sh
-rwxr-xr-x  1 dap  staff  92  9 Mar 13:10 /Users/dap/.xinitrc.d/000-rio.sh

Then, it seems necessary to enable full-screen in preferences:

image

After that, ALT-CMD-A toggles full screen mode.

bhuntsman commented 2 years ago

rio isn't currently supported under macOS. X11 support, and macOS, are detected by the script src/cmd/devdraw/mkwsysrules.sh. Supporting this correctly would require a few special cases to be added to that script, because not all macOS installations have XQuartz installed, and we want the majority of the devdraw programs to build with native windowing system support.

I'm not sure there is enough demand for this to warrant an issue that will not be addressed by a subsequent pull request. While I admire your work and might even build a copy of rio for myself using your instructions, this might be better disseminated via a blog post or message to the 9fans mailing list.