ubuntu 10.10 - Get rid of the Desktop directory in home

0

1

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.

Ludwig Weinzierl

Posted 2010-12-13T21:37:16.663

Reputation: 7 695

Answers

1

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...

pootzko

Posted 2010-12-13T21:37:16.663

Reputation: 613

It's probably nautilus, but how can I turn it off? – Ludwig Weinzierl – 2010-12-13T21:59:18.883

edited the answer, give it a try... =) – pootzko – 2010-12-13T22:34:07.420

Thanks pootzko. Apparently there was a bug report and subsequent fix in 2007 (--no-desktop). Unfortunately it doesn't work anymore.

– Ludwig Weinzierl – 2010-12-14T19:45:01.297

1

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
XDG_DESKTOP_DIR="$HOME/.xdg/Desktop"

(works for me on Ubuntu 10.04)

Gilles 'SO- stop being evil'

Posted 2010-12-13T21:37:16.663

Reputation: 58 319

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 – 2010-12-14T19:54:31.677