If you have a command that needs to run when you login there’s a way to do just that.
cd ~/.config/autostart/.to jump into the autstart directory. To make a command run when you login, you need to make a file.
vim somename.desktop. The someone part isn’t so important, but the .desktop part is. Here’s the file template.
[Desktop Entry] Type=Application Exec=Put Your Command Here Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name[en_US]=Name of Command Here Name=Name of Command Here Again Comment[en_US]=Description of Command Here. Comment=Description of Command Here Again.
Then just save your file with
:wq! and you should be all set. If you go to System > Preferences > Start Applications, you should see an entry of your newly made start up command.