! 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 !
trashing of "ö" and "%C3%B6" generate info files with the same content
Status:
RESOLVED: WORKSFORME

Comments

Description omage47 2012-05-18 16:50:12 CEST
I'm using xfce4.10 on Ubuntu 12.04 without gvfs. I'm not using gvfs since it wakes up my second reserve hard disk every 30 min (even though there is nothing mounted on it and I have put it to sleep with hdparm) and this is too loud. So I'm writing my own "trash restore" program. I found this bug:

"Move to Trash" of file "%C3%B6" generates this trashinfo file:

[Trash Info]
Path=/home/asdf/%C3%B6
DeletionDate=2012-05-18T16:16:13

"Move to Trash" of file "ö" generates this info file:

[Trash Info]
Path=/home/asdf/%C3%B6
DeletionDate=2012-05-18T16:16:19

According to http://freedesktop.org/wiki/Specifications/trash-spec it should be possible to restore the file only by reading the contents of the trashinfo files not the names of the trashinfo files. How do you restore these files? To "ö" or to "%C3%B6". Filenames containing "%" can happen when you download files from the internet whose original filenames contained an space for instance. "%" should be escaped too. This is probably a bug of g_file_trash of glib (?).

I'm using xfce4.10 compiled by me on Ubuntu 12.04 (gvfs not installed).

The old xfce 4.6.2 thunar did it partially right:

It generates

[Trash Info]
Path=/rw/downloads/%25C3%2586
DeletionDate=2012-05-16T06:19:38

for file "%C3%86" and

[Trash Info]
Path=/rw/downloads/%C3%B6
DeletionDate=2012-05-16T06:19:19

for file "ö".

This is only partially right since /rw is mount point of a partition with its own Trash at /rw/.Trash and according to http://freedesktop.org/wiki/Specifications/trash-spec there should only relative Path keys.

Unluckily thunar 1.02 crashes all the time on Ubuntu 12.04. I suspect you don't want to hear any bug reports for this combination?

But nevertheless thanks for your wonderful desktop environment.
Comment 1 alexxcons editbugs 2019-12-29 22:03:53 CET
Hah, I did not think that there is anybody out there still using xfce 4.10 :P

> I suspect you don't want to hear any bug reports for this combination?
Nope, even for thunar 1.6.x, I only would fix real critical bugs

Just tried to trash and restore "%C3%B6" and "ö", located in the same folder .. seems to work fine for thunar master. Though using gvfs I dont see any "Trash Info" files .. I guess thats expected ?

If I disable gvfs, I dont have the option to move files to trash any more ... I could hack that and see what is the outcome for thunar master, if that would be of any value for you ?
Comment 2 alexxcons editbugs 2020-05-11 01:02:25 CEST
ancient thunar version, and no reply from reporter - closing

Bug #8912

Reported by:
omage47
Reported on: 2012-05-18
Last modified on: 2020-05-11

People

Assignee:
Jannis Pohlmann
CC List:
3 users

Version

Version:
unspecified

Attachments

Additional information