Reboot two times in Mac Lion for resident program

Discussion in 'Mac OS X Lion (10.7)' started by Jason.yu, Dec 5, 2011.

  1. Jason.yu macrumors newbie

    Dec 5, 2011
    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/ 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/"; "Hide"="0"; }'

    Many thanks for your help.


Share This Page