Joined: 04 Jun 2003
|Posted: Mon Jan 05, 2009 9:20 pm Post subject: HowTo: Hide files in nautilus without using a leading dot
|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.
Laß das mal den Papa machen!