You are not logged in.

#1 2009-08-23 22:34:16

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Stop GTK Programs from making Desktop Directory [SOLVED]

I don't use GNOME, and I don't want a Desktop directory. Though it seems that GTK programs keep creating one for me. Is there a way to disable this?


EDIT:
Solution: make a file called user-dirs.dirs and put it in ~/.config. Paste the following in:

XDG_DESKTOP_DIR="/home/egan/"
XDG_DOWNLOAD_DIR="/home/egan/"
XDG_TEMPLATES_DIR="/home/egan/"
XDG_PUBLICSHARE_DIR="/home/egan/"
XDG_DOCUMENTS_DIR="/home/egan/docs"
XDG_MUSIC_DIR="/home/egan/music"
XDG_PICTURES_DIR="/home/egan/pics"
XDG_VIDEOS_DIR="/home/egan/vids"

Replacing 'egan' with your user name of course, and editing the directories as needed (if you don't need gtk-fileselector to see these, just set them to your home directory).

Last edited by egan (2009-08-24 01:40:48)

Offline

#2 2009-08-23 23:06:49

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

There are already a few threads on this topic. First thing you'll need to work out is which of the GTK programs are creating the folder.

Offline

#3 2009-08-23 23:23:41

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

Maybe you will have to live with it (or start filling bug reports wink ) .... but if you keep getting garbage inside maybe you can chmod 000 and/or change the owner to root, it's a bit of an overkill but should should stop anything from getting stored inside big_smile


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2009-08-23 23:26:58

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

If you look through the settings for nautilus (I think) with gconf-editor, you should be able to find it.

Edit: It's under /apps/nautilus/preferences/desktop_is_home_dir .

Last edited by SamC (2009-08-23 23:29:27)

Offline

#5 2009-08-23 23:33:27

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

I have no Nautilus and no gconf editor. The programs I suspect of doing this (the only GTK programs I have) are Firefox, GIMP, and OpenOffice. Shouldn't there be a way to get rid of this!?

Last edited by egan (2009-08-23 23:34:54)

Offline

#6 2009-08-23 23:51:25

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

Have you tried installing gconf-editor and seeing if that key is set?

Offline

#7 2009-08-24 00:48:29

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

Firefox does it for sure. GIMP doesn't for sure. I don't have OpenOffice installed, so I don't know there.

I think Firefox may do it after every update. I can delete the folder and it goes away for a while. Then it magically reappears after some time.

Offline

#8 2009-08-24 00:52:18

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

I suggest figuring out which applications do this and then filing bugs reports in person using this:
KE-2608.jpg


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2009-08-24 01:08:11

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

Change your Firefox preferences for Downloads to "Always ask".  And if you ever again toggle the "Save files to" radio button, the Desktop directory will be recreated.

Offline

#10 2009-08-24 01:13:31

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

Found it. Delete the folder, go to Firefox's Preferences menu, click some of the tabs, and the folder appears. Now that's stupid.

Offline

#11 2009-08-24 01:35:45

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

I changed the "Save files to" to ~/downloads, then enabled "Always ask" and finally deleted the Desktop directory. Now I can go in and out of Preferences tabs without the Desktop directory being again created.

[Edit].. I spoke too soon. This zombie directory is back!

Last edited by thisoldman (2009-08-24 02:00:12)

Offline

#12 2009-08-24 01:37:53

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

skottish wrote:

Found it. Delete the folder, go to Firefox's Preferences menu, click some of the tabs, and the folder appears. Now that's stupid.

Really? That is really annoying. Maybe I should file a bug report...

Anyway I think I got this one solved. I switched from Ubuntu yesterday, and there I had to edit ~/.config/user-dirs.dirs to get the "Desktop" directory to be called "desktop" (I use the shell a lot and don't like non-unixy filenames). Placing this file (tweaked of course) in the appropriate directory seems to fixed this nuisance. Its impositions like these that caused me to switch to Arch in the first place but I guess I can never escape the GNOME.

Offline

#13 2009-08-24 06:44:24

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Stop GTK Programs from making Desktop Directory [SOLVED]

Offline

Board footer

Powered by FluxBB