pyratelog

personal blog
git clone git://git.pyratebeard.net/pyratelog.git
Log | Files | Refs | README

20170822-firefox_desktop_dir.md (1482B)


      1 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.
      2 
      3 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.
      4 
      5 The file `$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.
      6 
      7 If you have the `xdg-users-dirs` package installed you can run the following
      8 ```
      9 xdg-user-dirs-update --set DESKTOP $HOME/
     10 ```
     11 
     12 If you don't have the package installed you can stop XDG from regenerating the directory by doing the following
     13 ```
     14 cat >> $HOME/.config/user-dirs.conf << EOF
     15 enabled=False
     16 EOF
     17 ```
     18 
     19 Solutions found at the following links
     20 
     21 - [Arch Linux forums](https://bbs.archlinux.org/viewtopic.php?pid=996905#p996905) 
     22 - [AskUbuntu](https://askubuntu.com/questions/48446/how-to-make-permanent-change-to-config-user-dirs-dirs)
     23 - [UNIX StackExchange](https://unix.stackexchange.com/questions/207216/user-dirs-dirs-reset-at-start-up)
     24