• 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
Issue with RootDirectory key in launchd plist file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with RootDirectory key in launchd plist file


  • Subject: Issue with RootDirectory key in launchd plist file
  • From: Sudheer dantuluri <email@hidden>
  • Date: Tue, 25 Sep 2007 14:25:57 +0530

Hi Andrew Farmer ,

I actually want to launch an application that is installed for a specific user.
Specifying the complete path restricts to only one user.
What if i want to launch the same application that is installed in another user by placing the same plist file in that user's Library/ LaunchAgents folder ?
Do i need to change the path explicitly or is there any other way ...



The documentation of RootDirectory is as follows.
RootDirectory <string>
This optional key is used to specific a directory to chroot(2) to before
running the job.


Even if i specify the value as /Users/sudheer/ to RootDirectory , it's not working on Intel Mac.

Thanks
Sudheer.


On 24 Sep 07, at 00:15, Sudheer dantuluri wrote: > Hi All , > > I'm facing a problem with RootDirectory key in launchd plist file. > It's working fine on PPC , but giving exceptions on Intel Mac .

<...>
>      <key>RootDirectory</key>
>     <string>~/</string>


~ is not a path - it's a shortcut for the current user's home directory that gets expanded by the shell. There's no actual directory called "~", though, and I suspect that launchd may not be able to perform the tilde expansion reliably. Try specifing the full path to the appropriate user's home directory.

I don't know why this would differ between PPC and x86 Mac OS, but I
don't see any reason it couldn't either.
_______________________________________________

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


  • Prev by Date: Re: Core data or else?
  • Next by Date: [SOLVED] Re: -[NSInvocation length]: selector not recognized [self = 0x30abd0]
  • Previous by thread: Re: Issue with RootDirectory key in launchd plist file
  • Next by thread: How to maxmize a window at startup?
  • Index(es):
    • Date
    • Thread