Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HowTo: Hide files in nautilus without using a leading dot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
dirk_salewski
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 216
Location: Germany

PostPosted: Mon Jan 05, 2009 9:20 pm    Post subject: HowTo: Hide files in nautilus without using a leading dot Reply with quote

Hello out there,

this is written in and for a gnome environment, but it might be interesting for non-gnome-users as well. Let's go then:

Most users of the big desktop environments (KDE, Gnome, XFCE) have a home-directory with some folders in it, named e.g. "Job", "Pictures", "BitTorrents" and the like. Usually the desktop environments put an additional "Desktop" folder into the users home directory, which is supposed to hold the contents of the users desktop.

Well, I'm a bit of a freak when it comes to sorting my stuff, which is why I never liked that solution. "Desktop" is just no proper category - it's a bit like in these brainteasers where you see the question: "[ Programming | Reading | Painting | Desktop] - point out the expression which does not belong into this list!". What could it be...? Which is why I was happy to discover that you could simply use your home directory as desktop in gnome by simply using gconf and ticking "/ > apps > nautilus > preferences > desktop_is_home_dir".

However, some applications (like firefox 3 when trying to backup your bookmarks) just don't honour that setting and instead create a folder "Desktop" on their own, which shows up very ugly on your beautiful and otherwise stringently categorized home folder desktop.

Now, if you create a simple text file named ".hidden" in your home directory and enter the name "Desktop" into it, nautilus will never show that Directory. You can then create a symlink named "Desktop" to your home directory and be sure that whenever a misbehaving app tries to save anything in "Desktop" it will be placed in your home instead.

You can do this .hidden-trick with any file or folder.

Greetings

Dirk
_________________
Egal was Du kochst: Karl Marx.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum