OSX 10.8 LoginItems

后端 未结 2 417
被撕碎了的回忆
被撕碎了的回忆 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: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

提交回复
热议问题