PDA

View Full Version : How do I turn off the xterm automatic opening


wgscott
01-13-2003, 12:24 AM
I've searched everywhere for how to get rid of the single xterm window that pops up when you start x11.app. I prefer to launch x-applications from terminal.app terminals, so I just wind up closing that annoying window immediately.

sao
01-13-2003, 12:49 AM
wgscott wrote:
how to get rid of the single xterm window that pops up when you start x11.app
The first xterm is launched from a call to system hardcoded into the Xquartz binary. Now, if you want to change the behavior of the first launched xterm, you'll have to create a .xinitrc in your home directory.


Cheers...

wgscott
01-13-2003, 01:02 AM
Oh well, I guess I can use the brute force approach -- move xterm to something unrecognized and invoke it by that other name.

Seems a bit Gatesian to require an xterm to open...

sao
01-13-2003, 02:14 AM
wgscott,

You can make your xterm behave more like Terminal.app, read this thread here:

http://forums.macosxhints.com/showthread.php?s=&threadid=8451


Cheers...

Glanz
01-13-2003, 06:57 AM
Originally posted by wgscott
I've searched everywhere for how to get rid of the single xterm window that pops up when you start x11.app. I prefer to launch x-applications from terminal.app terminals, so I just wind up closing that annoying window immediately.

With an ~/.xinitrc file. But don't forget to place a shortcut for X11 in the dock. One of the reason that an app is launched "automatically" on an X11 rootless mode is so that the user has a space in which to click to bring up the X11 menu in the task bar. With no apps running, no GUI's apparent, a simple click on the desktop picture will 'hide' all references to x11. Now with a little harmless x11 app running, or with an icon in the dock, the user may click once in the area of the app's GUI or one-click the dock icon to bring the interface back to x11.

wgscott
01-13-2003, 04:48 PM
The x11.app icon always winds up in the doc whether or not a subsidiary X application is running. (I wish this wasn't the case and that it would just run in the background to be invoked whenever needed to open an x-windows unix application from the command line.)

UltraNurd
01-16-2003, 09:33 PM
I know how to open new xterms at startup in my .xinitrc file, since I use that kind of setup on a couple of multi-user systems where I'm not always logged in and I want all of my windows right there. On my OS X box, I'm the only user, and I greatly prefer using Terminal. What would I need to put in my file? Something to close the xterm immediately, or something that would supress it from opening at all? Obviously, I'd rather not rename xterm...

wgscott
01-17-2003, 12:59 AM
Renaming it works. It seems drastic but if you don't use it, who cares? It doesn't appear to break anything. Then if you want to open xterms remotely when you log into the account, you can just invoke them with the new name from a .cshrc (or whatever) file that has a switch to see if you are running remotely.

maniac
01-22-2003, 08:11 PM
I created an empty .xinitrc and it keeps the default xterm window from opening. Great! However, when lauching X11.app, my cursor defaults to the ugly 'X' icon familiar to XWindows users... how to I turn this off?

Thnx in advance.

wgscott
01-26-2003, 07:26 PM
Another option is:

1. rename xterm

2. alias xterm newxtermname

in your .cshrc file

Then when you open a terminal, and type xterm, it will be invoked, but when you startup x11.app, you won't be plagued with that window when you don't want it.