• 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
Re: Run application before Login starts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run application before Login starts?


  • Subject: Re: Run application before Login starts?
  • From: kirankumar <email@hidden>
  • Date: Wed, 7 Jul 2010 17:59:20 +0530

hi

thanks greg guerin.

From the SampleCode, i follow these steps for my application but its
not displaying my application ,its displays only menubar at the top
of the screen when login window appears.

Any how my app works fine, but when i login my appl was quit.But i
need my appl  to work, for that i need to change any properties in
plist or any other things i need to do .
 Below is my plist fields:

Label  --->com.xxx.xxx
LimitLoadToSessionType ---->LoginWindow
OnDemand   ---->No
>ProgramArguments
      0   ---> /Library/PrivilegedHelperTools/xxx.app/Contents/MacOS/
xxx


$ sudo mkdir -p /Library/PrivilegedHelperTools Password:******** $ sudo chown root:wheel /Library/PrivilegedHelperTools

Pre-login launchd agents are run as root and it is not appropriate to
place them in any directory that an admin user can modify without
authenticating.

3. Copy the agent to "/Library/PrivilegedHelperTools".

$ sudo cp -R PreLoginAgentCocoa/build/Debug/myapplication.app \
/Library/PrivilegedHelperTools/



4. Copy the property list file to "/Library/LaunchAgents".

$ sudo cp PreLoginAgentCocoa/com.yourscompany.myapplication.plist \
/Library/LaunchAgents/

$ sudo cp PreLoginAgentCarbon/com.yourscompany.myapplication.plist\
/Library/LaunchAgents/

5. Log out.

At the login screen you will see a window displaying the name of the
sample.  When you log in, the agent will quit and the window will go
away.




On Jul 5, 2010, at 11:22 PM, Greg Guerin wrote:

kirankumar wrote:

How to run a application before login starts (ie, before when we
enter username and password).


http://developer.apple.com/mac/library/technotes/tn2005/tn2083.html

   -- GG

_______________________________________________

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:
40moschip.com

This email sent to email@hidden


The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.
_______________________________________________

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


References: 
 >Re: Run application before Login starts? (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: Pass-by value… warning (was: NSTextField fieldeditor subclass example? (and an unrelated other inquiry))
  • Next by Date: Re: Continuous zoom in MKMapView
  • Previous by thread: Re: Run application before Login starts?
  • Next by thread: GKSession and WLAN
  • Index(es):
    • Date
    • Thread