I am entering the login item from the terminal but, this command is not working for me:
defaults write ~/Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '{Path="/Applications/Your Application.app";}'
What am I doing wrong?