site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Owxp9EqHybR9HMrj8Q0avYAdA1RPDJzNeDDCHIVPdnU=; b=XmSzi4HT4lnM/Ej412Kj9drbM4abz1XYH6hFW/0eYT0Rj/3MYH3zt31V40VzeS9nu8 B8kKRpd0w/M2M9Ck8FwlTZif9UgsNX5k3Y39wlbUnLnSJVue4e3e3kU2tA8qQETnsH50 Icph4PspUC36I1L9SLC2dX76Dd6Or3CF6g4u4= Hello I am writing a background application, that has to be installed first using Installer (created using PackageMaker or Packages) and then the installer should launch the agent for the first time. The application is a user mode agent, that just shows its icon in Status Bar. The problem is I can't launch this agent in the right "context". Installer's PostInstall script is executed with the root privileges, and if i execute there "launchctl /Library/LaunchAgents/com.nick.mycoolapp.plist", i get the agent started in the "root context", not in the current user's context.. Some applications (like Dropbox) install an icon there (i am not sure if dropbox is an agent, however it autostarts when the system starts and places its icon on the Status Bar). Can I somehow get the right context, and execute the script on behalf of the currently logged in user? Is there any way to "lower" privileges? The systems are Snow Leopard and Lion, it also would be great if I could do that on Leopard. Thank you! P.s. where should one send questions related to launchd? It seems that launchd-dev mailing list has been dropped. _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com