Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I deleted /home/user/Desktop because I don't put anything on the Desktop. Unfortunately the directory keeps reappearing.

What I tried so far is to replace XDG_DESKTOP_DIR="$HOME/Desktop" with XDG_DESKTOP_DIR="" in ~/.config/user-dirs.dirs, but it didn't help.

I'm pretty sure I locked down the desktop completely in an earlier install, but I can't remember how I did it.

share|improve this question

Probably some of the programs you're using recreates it everytime you run it... maybe nautilus uses it for default folder, or for example firefox as a default download place, or something similar..?

edit: well, i'm not exactly sure this will work because it's quite old, but it still might put you on the right track...

share|improve this answer
It's probably nautilus, but how can I turn it off? – Ludwig Weinzierl Dec 13 '10 at 21:59
edited the answer, give it a try... =) – pootzko Dec 13 '10 at 22:34
Thanks pootzko. Apparently there was a bug report and subsequent fix in 2007 (--no-desktop). Unfortunately it doesn't work anymore. – Ludwig Weinzierl Dec 14 '10 at 19:45

I think you just have to set these variables to non-empty values. The directories will be created somewhere, but they can be out of sight.

$ grep DESKTOP ~/.config/user-dirs.dirs

(works for me on Ubuntu 10.04)

share|improve this answer
Thanks Gilles, I did just that and it works. I'm concerned however that some day I accidentally drop something on the desktop and wonder where it went because I don't remember where I hid the folder:-). – Ludwig Weinzierl Dec 14 '10 at 19:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.