I changed my ~/.profile and added few lines to make it run when i login to my user account :
google-chrome # to start chrome
code # to start vs code
exit 0
but since then i can't login i tried to use guest session to login with ctrl+alt+f1 but whenever i type my username and password i get logged in then it asks me to log in again, if I can undo my changes to that file I think I will be able to log in back normally but every solution i found depends on the ctrl+alt+f1-f6 solution which won't work for me...
exit 0that's the main problem. It signs you out as soon as it runs. Also, GUI programs (i.e. Chrome and VS Code) should be set up in Startup Applications, not ~/.profile. – wjandrea Dec 21 '17 at 09:03