When the app is launched for the first time (or its local storage is removed) it should set:
the userPreferences (local storage) to TRUE
"Auto-launch app on system login" to TRUE in the tray menu
an OS login item
If the tray menu item is toggled, both local storage and the OS login item should be in the correct state.
If the OS login item is removed (or added) while the app is closed, when the app is launched, the tray menu item and local storage should respect the OS login item state.
When the app is launched for the first time (or its local storage is removed) it should set:
If the tray menu item is toggled, both local storage and the OS login item should be in the correct state.
If the OS login item is removed (or added) while the app is closed, when the app is launched, the tray menu item and local storage should respect the OS login item state.