Here are a few practical steps for user that are fed up with applications littering in their home directory:Step 1: Adjust some environment variables
Add the following line to
Add the following lines to
/etc/lightdm/lightdm.conf (if you use LightDM)
or try adding
.pam_environment (this might or might not work depending on the display manager).
Check whether existing dot-files and dot-directories can be moved – many applications already support the XDG base directory specification, but do not move existing files:
Check whether bug reports exist for the remaining applications or file new bug reports. The Arch wiki entry on XDG Base Directory support is an invaluable resource.Step 4: Make
$HOMEread-only (yes, really)
chmod -222 $HOME
to prevent the creation of new dot-files and dot-directories in your home directory.
From this point on, the number of dot-files and dot-directories can only shrink as the remaining applications get fixed and start conforming to the XDG base directory spec, while no new dot-files and dot-directories can be added to your home directory.