Re: Launch a user-process from daemon
Re: Launch a user-process from daemon
- Subject: Re: Launch a user-process from daemon
- From: Shawn Erickson <email@hidden>
- Date: Tue, 27 Jan 2009 10:48:23 -0800
On Tue, Jan 27, 2009 at 10:22 AM, Rakesh Singhal
<email@hidden> wrote:
> It is very simple. There is nothing like daemon and not related to usb
> device. One process is launching another GUI application thats all.
> Only to launch the GUI, I am looking for different APIs. Obviously I
> have to support both 10.4 and 10.5.
> 1. LSOpenApplication()
> 2. execl()
> 3. system()
In general The Right Way (TM) to launch a standard GUI application is
by using LaunchServices. Of course the process doing the launching
needs to be running in the same graphical user session that you want
the GUI application to appear in.
Using launch services will ensure that application is running as it
would normally run as if the user had launched it themselves. It also
avoids the concerns about process groups, etc.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden