• 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
Automatically launch GUI app for current and future users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automatically launch GUI app for current and future users


  • Subject: Automatically launch GUI app for current and future users
  • From: Per Olofsson <email@hidden>
  • Date: Wed, 08 Feb 2012 12:11:00 +0000
  • Thread-topic: Automatically launch GUI app for current and future users

I have written a status menu application that we're going to deploy internally, pushed with Munki as a silent background install. It needs to launch automatically for all users, both when new users log in, and for those who are already logged in - I'd rather not force a logout to activate it. For new logins, any recommendations regarding a login item vs a launch agent?

• Global Login Item, $3/Library/Preferences/loginwindow.plist AutoLaunchedApplicationDictionary
  - Needs a defaults write -array-add, but if the installer is run again I assume there will be multiple entries. Solvable with FoundationPlist.py, but that's a little more work.
  + Visible to users under Users & Groups as a login item.

• LaunchAgent
  + Easy to write and deploy, just a plain file.
  - No obvious way for users to see or disable it, should they want to.

Then for the challenge of launching the app for users that are currently logged in. I assume that this needs to be done with launchctl bsexec, but how do I produce a list of currently logged in users, and find a suitable PID for each?

--
Per Olofsson
System Administrator, IT-services, University of Gothenburg


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Automatically launch GUI app for current and future users
      • From: Per Olofsson <email@hidden>
    • Re: Automatically launch GUI app for current and future users
      • From: Greg Neagle <email@hidden>
  • Prev by Date: Re: Packagemaker UI Issue
  • Next by Date: Re: Automatically launch GUI app for current and future users
  • Previous by thread: Re: Packagemaker UI Issue
  • Next by thread: Re: Automatically launch GUI app for current and future users
  • Index(es):
    • Date
    • Thread