site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0Ke3FOPvVUEJkFyb41Lj3JnxMN5lYiAOx7ONnHVDuoQ=; b=tL236/6LPaMmqi9JF/m0oU3qFsxNC15zH5JsrbyRFU6oIpHAgj50xwoB+0g/47D61X bTEzxVe0mRnhUN0kE0DoKOnxbO894pMvE+olTpTMqY9ms+gMjldywv7CNR9e6K3ryLYG Qf2QTNoxDVpedHjvZwVPW7VgaCRRlg5mJs5JQ= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=s7asvHWGy34AZvp0z4+/MdEN2PjpJypm7B+p1YChwlthu3hQH9lHYsPM5FQ1a6deIg f4VGvDdVqYjDiBllFr7BvmyhV4nw1x9KJv5mZO1IBdsBS3tuDnXwJnJeDCmHKTwJdBMw cYthp0n0wlB4+f2Y4W8t94A2WLcJwFb/IdPMw= On Tue, Jan 27, 2009 at 10:22 AM, Rakesh Singhal <rakesh.singhal@gmail.com> 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com