I used to put user-specific settings like LANGUAGE and PAPERSIZE in ~/.pam_environment, but the manual and the warning emitted on login tells me:
Due to problematic security this functionality is deprecated since the 1.5.0 version and will be removed completely at some point in the future.
Unfortunately that warning only tells me I am doing something wrong, not what I should do instead. I am guessing putting everything in ~/.profile has minor differences, but that is what I should be using if/when the deprecated extra file is discontinued in Ubuntu?
environment.dto be the prime candidate for everything that will involve systemd sessions (so should work fine for SSH, GUI logins etc.) – muru Feb 28 '24 at 14:41~/.profileoption for years. Please state the "minor differences" – Daniel T Feb 28 '24 at 19:40