PDA

View Full Version : Reboot two times in Mac Lion for resident program




Jason.yu
Dec 5, 2011, 04:28 AM
Hi,
I have suffered this problem, hopefully you can give me some suggestions.
A resident program for our product is to detect the device in Mac. The program works fine in Mac Snow, Snow Leopard(32-bit, 64-bit); but failed in Lion. That is,after the drivers and program installed from the metaPackage file, we need to reboot to let it work. However,I checked in Mac Lion, it has already registered in /Library/Preferences/com.apple.loginitems.plist but it does not exist in Activity Monitor. After I reboot again, the program exists in Activity Monitor of Lion and works fine. I also try to run it in terminal but it still does not work.
The script is
sudo defaults write /Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '{ "Path" = "/opt/Data/Monitor.app"; "Hide"="0"; }'

Many thanks for your help.

Jason.