sudo for what? Not for installing packages. sudo apt install joe from my home directory has no ill effects. Perhaps trying to start the desktop GUI as root? Maybe then the .conf file gets root as owner, and that might conflict with writing to it from your user-level account.
"You can't actually make computers run faster, you can only make them do less." - RiderOfGiraffes