Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Stop X11 from opening xterm on launch' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Stop X11 from opening xterm on launch
Authored by: wgscott on Nov 02, '07 08:14:10AM

Good hint, except it might be better to use /usr/bin/false



[ Reply to This | # ]
10.5: Stop X11 from opening xterm on launch
Authored by: A. Square on Nov 02, '07 08:21:35AM

When I used /usr/bin/false, the hint didn't work. X11 would no longer launch. The hint as published works fine, though.



[ Reply to This | # ]
10.5: Stop X11 from opening xterm on launch
Authored by: wgscott on Nov 02, '07 11:56:57AM

Sorry, try

/usr/bin/true

(false returns 1, true returns 0)



[ Reply to This | # ]
10.5: Stop X11 from opening xterm on launch
Authored by: xcgr on Nov 04, '07 10:42:00PM

Setting it to /usr/bin/true causes my X11 to not launch at all.



[ Reply to This | # ]
10.5: Stop X11 from opening xterm on launch
Authored by: dbs on Nov 02, '07 10:09:34AM

Try /usr/bin/true then.
xhost is a potentially dangerous command that controls what other machines can connect to your X server. In the worst case they can read any key you type into an X11 application if you give them access.



[ Reply to This | # ]
10.5: Stop X11 from opening xterm on launch
Authored by: moylek on Nov 04, '07 07:01:11AM

I tried to _change_ the value for apps_to_run from:
/usr/X11/bin/xterm
... to ...
/usr/X11/bin/xterm -geometry 70x2+0+0

And somehow _that_ causes X11 to fail to open:

[hooker:~/Library/Preferences] moylek% open -a /Applications/Utilities/X11.app
LSOpenFromURLSpec() failed with error -10810.

Weird. Yet that command runs just fine from the command line.

Also weird, I can't run "man xterm" etc.



[ Reply to This | # ]
10.5: Stop X11 from opening xterm on launch
Authored by: joebeone on Jan 04, '10 11:14:52AM

Hiya, the trick here is to either put those extra arguments in single quotes, like:

defaults write org.x.X11 app_to_run 'xterm -sb -sl 256'

or put any xterm (or whatever) -specific commands that you'd pass via the command-line via .xinitrc. The .xinitrc method allows triggering arbitrarily complex X11 start scenarios... so:

  1. do the defaults ... usr/bin/true thing.
  2. Put the xterm in your .xinitrc; my .xinitrc looks like this:
    xterm -geometry 80x35 -sb -rightbar -sl 2000 -fn lucidasanstypewriter-14 &
    exec quartz-wm


[ Reply to This | # ]