Preventing the ~/Desktop direcory
Some programs like e.g. Firefox have the annoying habit of creating a
Desktop directory in your
It seems this is driven by the freedesktop specification, specifically
Since I prefer a simple window manager to a complex and overweight “desktop environment”, this behavior annoys me to no end. Luckily there is a way to turn it off.
Create a file named
user-dirs.dirs in the directory
This file should contain at least the following line:
You should of course substitute your own username for
There are several values that you can set in this file.
Most of them only matter when you use a desktop environment.
The defaults (without the
XDG_ prefix and
_DIR suffix) are defined in
Some sources say that it is OK to use shell variables (like $HOME) in the paths. Others disagree. So it seems best not to rely on that and use plain absolute directory names.
For comments, please send me an e-mail.
- Managing configuration files
- Writing speed on FreeBSD 13.1-p2 amd64 with ZFS
- FreeBSD 13.1 install on a Lenovo IdeaPad 5
- Gnumeric build fix for FreeBSD
- Writing speed on FreeBSD 12.1-STABLE amd64