• 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
Getting the path to an application with a launchDaemon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the path to an application with a launchDaemon


  • Subject: Getting the path to an application with a launchDaemon
  • From: Zephyroth Akash <email@hidden>
  • Date: Fri, 27 Nov 2009 09:08:08 +0100

Hi,

I'm actually creating a daemon which then runs in root context and I can't get the path to an application.

The command: [[NSWorkspace sharedWorkspace] absolutePathForAppBundleIdentifier:@"com.myCompany.myApp"]; returns NULL but returns the path to my application bundle correctly if used as a user.

If I launch my application as a user and tells the daemon to list the launched applications then my application is listed.

I don't understand ...

Can someone point me in the right direction ?



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Getting the path to an application with a launchDaemon
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: How to remove all objects from a NSTreeController ?
  • Next by Date: Re: My try/catch block isn't catching exceptions on 10.6
  • Previous by thread: Re: How to remove all objects from a NSTreeController ?
  • Next by thread: Re: Getting the path to an application with a launchDaemon
  • Index(es):
    • Date
    • Thread