! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Feature request: possibility to choose if thunar have to consider backup file...
Status:
RESOLVED: FIXED
Severity:
enhancement

Comments

Description Alberto M. Scattolo 2007-05-27 13:54:32 CEST
Hi all!
I'm wroking on projects using bluefish and other softwares that, before saving changes to files, create a backup file named filename.ext~.
Thunar considers these backup files as hidden files (like file with filename begining with a dot) and this behaviour may be dangerous if the user hides hidden files. (Backup files may contain sensible informations and copying entire directories, including backup file, is really dangerous.)
So, if possible, I would suggest/ask to include in preferences the possibility to choose thunar behaviour with those files.

Many thanks for your attenction and for you work.
Sincerelly,

Alberto M. Scattolo
Comment 1 Pablo 2007-11-08 22:46:10 CET
Hi.

I also want this option. Maybe an option in thunarrc file?
Comment 2 Alberto M. Scattolo 2007-11-08 23:01:21 CET
(In reply to comment #1)
> Hi.
> 
> I also want this option. Maybe an option in thunarrc file?
> 

I think that probably it may interest more people and implementing it in gtk is not very hard work.
I vote for ading it insider settings window but ok, they can put the feature wherever they want :).

Anwyay in my opinion do not inform users about the presence of backup file is a BIG risk. I hope someone will consider our opinion.

Alberto M. Scattolo
Comment 3 Harald Judt 2008-06-13 13:34:51 CEST
Created attachment 1686 
Simple patch for thunar-0.9.0 to not treat backup files as hidden files.

thunar-vfs/thunar-vfs-types.h:
 * @THUNAR_VFS_FILE_FLAGS_HIDDEN     : The file should not be displayed normally,
 *                                     but only if the user requests to display
 *                                     hidden files. Hidden files start with a
 *                                     dot character ('.') or end with a tilde
 *                                     character ('~').

Looks like the devs followed a design decision by the gnome people:
http://linux.about.com/library/gnome/blgnome6n6r.htm

From my experience, backup files created by the system are often hidden files anyway. No offence meant, but they should not mix up hidden and backup files. For this and several other reasons, I despise this behaviour intensely, but fortunately you can get rid of it quite easily.

For those interested, here's a simple patch which removes the part with the tilde ending character. No extra option, this would have required more time than I wanted to spend on it.
Comment 4 Alberto M. Scattolo 2008-12-09 12:16:06 CET
Hi there!

I agree with you, hidden files starting with a dot and backup files are two different things... and they should not get mixed...
Anyway thanks for the patch, it's better then having nothing :D
Regards

Alberto M. Scattolo
Comment 5 Harald Judt 2010-12-28 14:10:43 CET
Great, this has been fixed in thunar-1.1.5!
Comment 6 Lionel Le Folgoc 2011-03-29 19:35:44 CEST
Marking as fixed per latest comment.
Comment 7 Lionel Le Folgoc 2011-03-29 21:43:39 CEST
*** Bug 6871 has been marked as a duplicate of this bug. ***

Bug #3295

Reported by:
Alberto M. Scattolo
Reported on: 2007-05-27
Last modified on: 2011-03-29
Duplicates (1):
  • 6871 Files/Directories with the "~" character at the end of the name becomes "hidden"

People

Assignee:
Jannis Pohlmann
CC List:
4 users

Version

Version:
unspecified

Attachments

Additional information