Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 21549 ideas, 132424 comments, 2606791 votes
Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas
Idea #7833: Windows hidden files should be hidden in Nautilus, too.

Written by Endolith the 29 Apr 08 at 14:22. Category: System. Related project: Nothing/Others. Status: New
Rationale
In Ubuntu, we can read many file systems, like FAT flash drives, CD-ROMs, and we now have read-write access to NTFS filesystems on dual-boot systems.

When navigating a drive created by Windows, MacOS, or other operating systems, system files that would normally be hidden in Windows Explorer or on a Mac (Thumbs.db, desktop.ini, __MACOSX, Word temporary files) are still visible in Nautilus, cluttering up every directory.

In UNIX-based systems, hidden files ("dotfiles") are designated by dotted file names like ".something". These are not displayed when viewing files with Nautilus or using "ls", for instance, but can be viewed by enabling "Show Hidden Files" in the View menu or using "ls -A".

FAT and related filesystems have hidden files, too, which are treated by Windows tools exactly the same way. They are designated by a "Hidden" file attribute flag, though, not by their filename.

You can delete the files, but they'll just be recreated as soon as the drive is opened on a native machine (and on OS X, these contain valuable metadata that you don't want to delete).

You can hide them in Nautilus alone with the .hidden file convention, but this has to be done manually, and you need to create a separate file for every directory.

39
votes
up equal down
Solution #1: File manager should hide files with hidden flag
Written by Endolith the 29 Apr 08 at 14:22.
Files with a "hidden" attribute in their native filesystem (or a special filename) should be hidden in Nautilus, too.

They should be treated exactly the same way as UNIX dotfiles by the file manager, since they serve the same purpose.

Ubuntu should respect the "hiddenness" of the file, no matter what the filesystem.
14
votes
up equal down
Solution #2: Hidden by default, configurable in Preferences
Written by pubsbin the 22 May 09 at 03:29.
First, I will make some considerations:

1 - Kids & Grannyies Rule: A user interface must be designed intending it to be used by simple people without any knowledge of Computers.
2 - The average user that mounts a windows filesystem (which may be just an USB disk or a photo camera) wants to see his music/photos/videos/documents and nothing else.
3- Windows programs don't mark a file as "hidden" without reason. It's because that file contain no information useful oto the user, only to the program.
4 - Therefore, the GUI must, by default, hide anything that stands in the way of the user to their data, including the Windows-hidden files.

5 - For the Pro user who wants to SEE everything in the disk, Nautilus must allow him to configure it in order to show the hidden files.


The solution I propose would include:

1 - Create a nautilous configuration option for "see hidden files in native filesystems" or so on.
2 - By Out of Box Default, this option should be unmarked (windows hidden files are hidden).
3 - When the user mounts an NTFS or FAT32, Nautilus shows
a small message saying "there are windows-hidden files in this folder. If you want to see them, then activate the "XXX checkbox in the menu YYY".

2
votes
up equal down
Solution #3: Make '.' a Symbolic Character
Written by Penguin Guy the 3 Sep 09 at 13:28.
GUI:
In nautilus there should be a right-click option and a properties option to hide files.

Backend:
Make the dot a symbolic character meaning 'hidden' when put at the start of files - this would allow support for hidden files on FAT, without the need to modify programs. This should work on all supported filesystems. It should be possible to use the escape sequence \. to print an actual dot.
8
votes
up equal down
Solution #4: Also Allow Hiding of Files
Written by Penguin Guy the 15 Oct 09 at 17:26.
On Windows filesystems Nautilus should have either a right-click option or a properties option to hide/unhide files.

Propose your solution

Attachments


Duplicates


Comments
U53R wrote on the 29 Apr 08 at 15:26
I dont see any need for hiding a "thumbs.db" for example, when it has no effect on linux distro's any ways. The only purpose this serves is making folders of windows content look "prettier" while they are being modified and or re-packaged on a linux machine.

The less that is hidden from the user, THE BETTER.

lsdark wrote on the 29 Apr 08 at 16:08
just put the names of the files you want to be hidden in a .hidden file. that's it.

droetker wrote on the 29 Apr 08 at 19:41
-1

Stay clean, don't mess Linux.

Windows hides hideen files, "system" files, files like boot.ini which is none of both, thumbs.db, desktop.ini...
lots of exceptions.

Better have a concept that is small and simple.
.hidden is everything you need.

Not to be like "we always did it like that, we'll ever do it like that." - but if a concept is good, why change it? just to make it better - and THAT (hiding thumbs.db) would be no improvement at all. it would result in many lost¬found thumbs.dbs ;-)

bert.ubuntu wrote on the 30 Apr 08 at 04:18
this is not Windows, actually it's bad practice to hide files and don't know what is happening.

Endolith wrote on the 30 Apr 08 at 04:59
For those of you who aren't aware, Ubuntu has the ability to open file systems other than ext3, like, for instance, FAT USB flash drives.

FAT drives have files on them which are hidden using system flags instead of dotted filenames. Linux should treat these exactly the same way it treats those with dotted filenames.

(Or, god forbid, an NTFS-3G Windows XP partition on a dual-boot system, like mine.)

Endolith wrote on the 30 Apr 08 at 05:00
And .hidden is an unacceptable solution, since it requires hand-editing a file for every folder on the FAT partition.

phonixor wrote on the 30 Apr 08 at 07:20
not to mention that windows will really enjoy the new dots for its files...

(windows gui doesnt even allow files to begin with "." ;p only command line... very annoying for eclipse projects... silly billy)

PeterKraus wrote on the 30 Apr 08 at 09:55
GNU/Linux is not Windows.
-1

wearzeep wrote on the 30 Apr 08 at 17:23
Hiding the files that should be hided adds consistency when browsing drives that are used by both linux and windows, for instance.
Definitely +1

Endolith wrote on the 2 May 08 at 03:19
Are you "Linux is not Windows" guys serious? You've never mounted a CD or Flash drive that was formatted in Windows?

Lightbreeze wrote on the 23 Aug 08 at 10:57
+1
This would make using a friends USB or finding files on a windows partition easier by far.
Linux may not be windows- but Ubuntu aims for it to be clean and user friendly.
There could be a simple option in nautilus for those that want to see these files.

I think windows is far to zealous about it's system file creations - spawning everywhere. So why do we need to see them?

Endolith wrote on the 26 Aug 08 at 02:27
@Lightbreeze

There is already a "simple option in nautilus for those that want to see these files". It's called "Show Hidden Files", in the View menu. :)

Files that are hidden in Windows filesystems (hidden flag) should be treated exactly the same as files that are hidden in Linux filesystems (.names). If you want to see them, use this View option.

Endolith wrote on the 26 Aug 08 at 15:14
@phonixor

"not to mention that windows will really enjoy the new dots for its files..."

Huh?? Did you not read the description? Why would anyone use dot files on Windows if it has a hidden flag in the file system?

gkffjcs wrote on the 15 Oct 08 at 05:05
It seems like most of you are missing the point.

It is quite common for most people to have a dual boot system, it is also quite common for people to want to view there Windows file systems from Linux. With the recent advent of the ntfs-3g driver viewing windows files from Linux is more common. This issue this post is covering is how Linux treats hidden files in windows. Basically should Linux respect the hidden flag in the Windows file system? I believe it should.

There are several posts that don't seem to understand this.
Windows makes many hidden files, in fact it makes two in every directory, if not more. It will make a thumbs.db file, a desktop.ini file, and there are also others created by some programs. These are files that are not displayed by the windows user interface, so why should they be displayed by the linux ui?

@bert.ubuntu, this isn't about arbitrairly hiding, or renameing files, this is about respecting windows' request to not have these files displayed. Windows doesn't show these files, there is if anything more damage posed by users in ubuntu accidently deleting windows system files, since in linux they aren't hidden.

I believe Endolith is exactly right, there is no reason why linux users should or want to see hidden ntfs, or vfat files which they are browsing normally from linux the same as from windows.

twocool wrote on the 24 Oct 08 at 18:33
If ubuntu acted in different ways in fat32/ntfs and in ext3/reiserfs/etc it wouldn't even be consistent with itself.

-1

Endolith wrote on the 24 Oct 08 at 20:15
If ubuntu acted in different ways in fat32/ntfs and in ext3/reiserfs/etc it wouldn't even be consistent with itself.

Huh?? I am asking for it to act the same way between file systems. Hidden files should be hidden, no matter what file system you are looking at.

Kelder wrote on the 18 Feb 09 at 14:29
I don't really see the harm if this was an optional plugin, but do understand the resentment and complications. However, this is just a linux standard, hide with the dot, and why not respect that? I also see the linux trash folders in windows explorer after all.

But I feel where you're coming from with this. Maybe it helps to know that there is a second way to hide files and folders in linux. You can place a textfile called ".hidden" in a directory and in it you can list files and folders you want to hide. So if you place a file called ".hidden" in the root of an ntfs partition that lists on separate lines 'System Volume Information' and 'RECYCLER', then at least those directories won't show up in Nautilus.

You could add more files or folders to the list, like your Windows directory, or even list individual system files. Toggling the hidden view (CTRL-H) will show both the listed files and the ".hidden" file again. Of course this will add one more non-hidden 'dot' file when you're in Windows... Hope this partial solution satisfies you.

Endolith wrote on the 18 Feb 09 at 14:58
this is just a linux standard, hide with the dot, and why not respect that?

When did anyone say not to respect that?

And as I already explained in both the idea rationale and in the comments, .hidden is not a solution, since it requires a separate file in every directory, and needs to be edited by hand. There is no way to say "hide all Thumbs.db files in any directory".

Kelder wrote on the 18 Feb 09 at 15:23
Sorry I missed that, in my defense I confused this thread with another.

>> When did anyone say not to respect that?

That was regarding the linux and osx hidden files showing up in windows explorer with no way to hide them.

Endolith wrote on the 20 Feb 09 at 17:13
That was regarding the linux and osx hidden files showing up in windows explorer with no way to hide them.

Doesn't that belong on http://www.windows7taskforce.com/, then? ;)

nalimilan wrote on the 26 Feb 09 at 09:56
This has been requested in Nautilus in october. While developers were OK to implement it and knew how to do this without too much trouble, kernel filesystem developers were not in favor of it, and nobody was ready to code it. So for now it's forgotten, but you only need somebody to implement a new interface in the kernel.

Thread references:
http://www.nabble.com/nautilus---hidden-files-td19787478.html
http://marc.info/?l=linux-fsdevel&m=122366660506480&w=2

Endolith wrote on the 2 Mar 09 at 23:34
For comparison, when you view EXT3 partitions in Windows, the .dotfiles are treated as though they had the hidden flag. I want the reverse to be true, too.

"The driver treats files with file names that start with a dot "." character as hidden." - http://www.fs-driver.org/faq.html

Penguin Guy wrote on the 3 Sep 09 at 13:37
I think it's terrible that Linux doesn't respect Windows hidden files. I don't think we can honestly say that Linux supports FAT and NTFS until the making and viewing of hidden files has been fixed at a kernel level.

Endolith wrote on the 4 Sep 09 at 01:54
Solution #3 "Make the dot a special character meaning 'hidden' when put at the start of files."

Uhhh.... it already does that.

Penguin Guy wrote on the 6 Sep 09 at 18:45
@Endolith

No, the dot is literal rather than symbolic. I am proposing to change it to symbolic, which would make it compatible with Windows.

zhangweiwu wrote on the 23 Nov 09 at 10:52
Is there a way to fix it a bit better by now? e.g. is there a configuration option or gconf option or configuration file that I can modify to make desktop.ini and ~* files (temporary files created by Microsoft Word) hidden? It makes it so much more troublesome for a Linux user who work with shared file system (samba) that are used by other Windows users.

Lox_ wrote on the 24 Nov 09 at 10:00
Seems that a Nautilus patch could allow the configuration of hidden files in nautilus via gconf. That could be easily implemented.

http://ubuntuforums.org/showthread.php?t=1296378


Post your comment