• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Where art thou, xinit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where art thou, xinit?


  • Subject: Re: Where art thou, xinit?
  • From: Benjamin Smith <email@hidden>
  • Date: Thu, 15 Nov 2007 10:16:11 -0800

On Wednesday 14 November 2007, you wrote:
> I'm not sure what you're hoping to accomplish here.  Why do you want
> Xquartz to quit afterwards?  Is it a scripted event?  If so, then you
> are probabloy better off using Xvfb/Xfake for that.

I just don't want to leave X11 "hanging around" after our program is otherwise
quit. What's the recommended way to accomplish this?

I used Platypus to create an icon that launches a script. The script does some
sanity checking on the environment (makes sure that X11 is installed, Xcode,
checks the processor type, etc) and then launches the X11 application. On
Tiger/Panther, this is done with a call to xinit, with Leopard, it just
launches the X11 app directly, now.

On tiger, when xinit terminates, the X icon disappears as well. I just want to
get Leopard to do the same thing without having to do a killall or
something...

More info on platypus:
http://mac.softpedia.com/get/System-Utilities/Platypus.shtml

-Ben

> On Nov 14, 2007, at 9:27 PM, Benjamin Smith wrote:
>
> > Hrmm...
> >
> > So I run the xinitrc itself directly as the script, and the
> > application comes
> > up! w00t!
> >
> > Well, THAT's easier... Now is there any way to close X11 from within
> > my
> > script, just so there's not "cruft" laying around afterwards?
> >
> > Thanks,
> >
> > - Ben
> >
> >
> > On Wednesday 14 November 2007, you wrote:
> >> Just launch the application.  The X server starts automatically.  /
> >> Applications/Utilities/X11.app is just a launcher for xterm.  /usr/
> >> X11/
> >> X11.app is pretty much our xinit.
> >>
> >> --Jeremy
> >>
> >> On Nov 14, 2007, at 8:19 PM, Benjamin Smith wrote:
> >>
> >>> I have an X11 application written in PHP-GTK that works well on 10.4
> >>> and 10.3,
> >>> launched with a shell call like this:
> >>>
> >>> # /usr/X11R6/bin/xinit "/path/to/my/xinitrc" $XINITOPTIONS -- /usr/
> >>> X11R6/bin/X
> >>>
> >>> It's beautiful - launches X11 and my app with a simple double-click
> >>> of the
> >>> mouse...
> >>>
> >>> But on Leopard, there is no /usr/X11R6/bin/xinit ! What's the
> >>> recommended
> >>> workaround? How to launch and application and X11 from within a bash
> >>> shell
> >>> script?
> >>>
> >>> -Ben
> >>>
> >>> --
> >>> This message has been scanned for viruses and
> >>> dangerous content by MailScanner, and is
> >>> believed to be clean.
> >>>
> >>> _______________________________________________
> >>> Do not post admin requests to the list. They will be ignored.
> >>> X11-users mailing list      (email@hidden)
> >>> Help/Unsubscribe/Update your Subscription:
> >
> >>>
> >>> This email sent to email@hidden
> >>
> >>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by MailScanner, and is
> >> believed to be clean.
> >>
> >
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)

This email sent to email@hidden

  • Follow-Ups:
    • Re: Where art thou, xinit?
      • From: Ben Byer <email@hidden>
References: 
 >Where art thou, xinit? (From: Benjamin Smith <email@hidden>)
 >Re: Where art thou, xinit? (From: Jeremy Huddleston <email@hidden>)

  • Prev by Date: Re: When X11 crashes, and you submit a bug report . . .
  • Next by Date: Re: X11 Font issues
  • Previous by thread: Re: Where art thou, xinit?
  • Next by thread: Re: Where art thou, xinit?
  • Index(es):
    • Date
    • Thread