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.
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.
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 ;-)
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.)
+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?
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.
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.
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.
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".
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.
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.
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.
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.