finnomena / CryptoSpace

A menu bar widget for macOS that monitors CryptoCurrency
5 stars 1 forks source link

Automatically launch at startup #2

Open detohm opened 7 years ago

detohm commented 7 years ago

This is such a crucial feature!! Since you can lost extra amount of money if you forget to open this application while all the things go low.

pitchmak commented 7 years ago

looking forward to using this https://github.com/sindresorhus/LaunchAtLogin with carthage

pitchmak commented 7 years ago

workaround for this issue is adding manually. You can open System Preference > User & Groups > Login Items and add this app to the list

pitchmak commented 7 years ago

seems like we need valid developer code sign to use SMLoginItemSetEnabled(identifier: CFString, enabled: Bool) from ServiceManagement.framework and needs so many first time setup. So, I use LSSharedFileList instead. I've commited on e8fa2f794261b58da3702ffae0ccc8f694977cb1

It's not as good as ServiceManagement.framework but it's an easier workaround.