OSX 10.8 LoginItems

后端 未结 2 416
被撕碎了的回忆
被撕碎了的回忆 2021-01-22 06:33

I found this Add app to OSX "Login Items" during a Package Maker installer postflight script but it doesn\'t appear to work in OSX 10.8?

This is from the other

相关标签:
2条回答
  • 2021-01-22 07:15

    OS X 10.8 stores login items in com.apple.loginwindow.plist

    0 讨论(0)
  • 2021-01-22 07:35

    OS X 10.8 is under NDA, we are not at liberty of giving details about it but i can tell you that there is no /Library/Preferences/loginwindow under 10.7 or any other recent OSX version, you should be doing :

    defaults write \
        ~/Library/Preferences/loginwindow \
        AutoLaunchedApplicationDictionary \
        -array-add '{ "Path" = "/path/to/script"; "Hide" = "0"; }'
    

    Notice the "~" tilde was missing

    0 讨论(0)
提交回复
热议问题