I had Ubuntu-14.04 installed in a minimum configuration, i.e. with no X Windows support. Later I added x-server packages for my card, and a lightweight WindowManager (I don't want KDE or GNOME), so I normally launch X with startx, however someone keeps on creating Documents, Desktop, Download, Video, Music etc. directories in my $HOME. I thought this isually done by "advanced" desktop environments. What application/daemon can be behind this anyways?
This is carried out by the
/usr/bin/xdg-user-dirs-update is run at logon and creates the files based on defaults in
/etc/xdg/user-dirs.defaults, or if it exists
If you want to disable it, the setting is in
/etc/xdg/user-dirs.conf, or uninstall the package, if dependencies allow.
1: The package name above is for Ubuntu. On Fedora and Arch it is
There is a utility
xdg-user-dirs-update which creates these directories if they're missing. You can try to track the invocations of this utility, but that's a lost cause: sooner or later an application will want one of these directories and create them all. On Ubuntu at least, it's called from the session startup scripts that are executed whenever you start an X session, and you can't suppress that without dirty tricks (or being root).
To get the directories out of the way, edit
~/.config/user-dirs.dirs and set them to the paths you like. The only one that you can't really change is
XDG_CONFIG_HOME=~/.config, because that's used to find the