Re: Launch a user-process from daemon
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=1Cop02Pp+o1/ugQQf+lYaovfIdiwAXZNZZVig3Aj5Lw=; b=DpcJ5Uh6xstx4eOGGki/iDnEzqXXZkuWEWNxXcBxpN8i8PtYT3i1qxOMNNFI+QmynY Kt1fh4Q9yJcspr4bcCCY7l725K2boLiKvWnay5ZiIkE896Cv2TtnKq0QB09rEwZllezk wr4PycUOmuDUvxxdIuIl8kad5IlkLvPd/jn8E= 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=DD13QPH5INQpObiDdtHY2BR0bvDl5R8k/n0yqJLmDirPamV1gmRw69XORjAGADMaUU zarSTt4GinWgR4O8S1Bs7ZiuRluNlhqy2Y4eyl/dyFmxA+cPLmzPBBoVn/Gv0FrpCSKD IUTFTCwoCKnhDwqBuoSOetPl3wod1l5A9bOfU= Currently I have one daemon app. I want to launch a GUI from daemon, when it gets device plugged-in notification. I observed following things while working on 10.4.11 ppc only using daemon (not agent): 1. The daemon launches the GUI on 10.4.11 ppc when I start the system. Now if I log out and logs in and plug-in device again then it gives error -10810. I could not understand that why does this error come and how to resolve this. 2. If I first log in as root user and daemon launches the GUI. Now I close the GUI and switch to another user. Now if daemon launches the GUI then it gets launched in root user, not in current user. It shows same behavior with all users. I have written an agent app also. If I use agent also with daemon then also it does not solve any of above problems. I hope, it is clear now. Regards rksinghal On Thu, Jan 22, 2009 at 1:07 AM, Shawn Erickson <shawnce@gmail.com> wrote:
On Wed, Jan 21, 2009 at 11:10 AM, Rakesh Singhal <rakesh.singhal@gmail.com> wrote:
Hi Shawn,
Thanks. Yes, you are right and I know it is not supported and I have written the agent to launch GUI. But this agents gets terminated when logs out, so this will not resolve the issue of getting error -10810.
It isn't clear exactly what your current implementation is... Can you restate what you have at the moment?
Also can you state what you are trying to achieve at a high level.
-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
participants (1)
-
Rakesh Singhal