I'm stuck in a login loop because:
- My
$HOMEvariable is being set incorrectly when I login. I logged into a shell viattty1andecho $HOMEreturned/usr/local/gradle .bashrcor.bash_profileisn't being sourced when I log in. I tried settingenv HOME=/home/pyler, andset HOME=/home/pyler, logged out then logged back in only to find that$HOMEwas/usr/local/gradle - again
This pops up whenever I login graphically via unity:
The system then logs me out and I'm back to square one.
When and where exactly is $HOME being set to /usr/local/gradle?
update
Found this line in .xsession-errors
dbus-update-activation-environment: setting HOME=/usr/local/gradle
Question is how do I stop this.
/etc/passwd(you can edit it withsudo vipd– Nick Sillito Apr 25 '17 at 19:43sudo vipw– Will Apr 25 '17 at 20:01getent passwd "$USER" | cut -d : -f 6andgrep -Fe HOME= /etc/{environment,profile,bash.bashrc} /home/plyer/.{profile,bashrc,xsession}? – David Foerster Apr 25 '17 at 20:34