Firefox Desktop Dir
Posted: 2017-08-22 | Category: Notes
This is probably really picky, but I’m not a fan of the Desktop directory that Firefox defaults to for downloads. As soon as I install Firefox I change the default download dir, but I had noticed that Firefox still created the dir when it started, and it would be the default location when an upload window was opened.
This had been one of those things that I had lived with, never really looking in to a fix. For some reason today I decided to have a look to see if this behaviour could be fixed, and thankfully I found an answer straight away.
$HOME/.config/user-dirs.dirs sets a number of default directories, one of which is the Desktop directory. At first I attempted to change the value in the file, and this worked until I rebooted my system. After a reboot the file was regenerated and the Desktop value was back.
If you have the
xdg-users-dirs package installed you can run the following
xdg-user-dirs-update --set DESKTOP $HOME/
If you don’t have the package installed you can stop XDG from regenerating the directory by doing the following
cat >> $HOME/.config/user-dirs.conf << EOF enabled=False EOF
Solutions found at the following links