Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Aqua-X11 Interactions

Since X11-based applications rely on different graphics systems even when running XDarwin in rootless mode, one would not necessarily expect that any GUI interactions between these two graphics systems are easily accomplished. There are several such easily accomplished interactions worth noting.

The first such interaction is to open X11-based applications from the Aqua terminal application. To allow an X11-based application to be launched from the Terminal application, you need to set the shell environment variable DISPLAY as follows (for tcsh):

setenv DISPLAY 0:0

If you are using bash or zsh, you could use the following shell environment:

DISPLAY="0:0"; export DISPLAY

You may choose to put the appropriate version of this in your startup configuration script (see Section 21.2.3).

You can also copy and paste between X11 and Mac OS X applications, though the mouse commands for using the clipboard on either side are different. Copying from or pasting to an Aqua window works the same no matter where the text came from, but X11 windows copy their text to the computer’s clipboard as soon as you select it; X11 windows pastes text through a Command-click (or pressing the middle mouse button, if you have a three-button mouse).

Tip

XDarwin allows you to configure key combinations that simulate two- and three-button mice. By default, Option-click simulates the middle mouse button, and z-click simulates the right mouse button. To configure this in XDarwin, choose Preferences ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata