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: 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 | # ]