Can't move to trash in data partition

Bug #1495781 reported by CzBiX
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
glib2.0 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have a clean install of Ubuntu 15.04.

I partitioned my disk into root and data partitions.
I then created ~/Data folder, and mount data partition on it.
I then created symlinks for ~/Downloads, ~/Music, etc... to ~/Data/Downloads, ~/Data/Music, etc...

Whenever I delete files directly inside ~/ they seem to go to the Trash (in ~/.local/share/Trash), but when I try to delete files in other folders that are linked to ~/Data (for example ~/Downloads, or ~/Data/Downloads) Nautilus says: "File can't be put in the trash. Do you want to delete it immediately?".

I compile glib without patch at https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1445622/comments/25, then it works well.

report from https://bugs.launchpad.net/nautilus/+bug/1406376

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1495781/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
CzBiX (gliuwr)
affects: ubuntu → glib2.0 (Ubuntu)
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glib2.0 (Ubuntu):
status: New → Confirmed
CzBiX (gliuwr)
description: updated
description: updated
Revision history for this message
CzBiX (gliuwr) wrote :

I just made a binary patch to fix this, please save as script and run:

https://gist.github.com/CzBiX/e64256b23687bb13da02

Revision history for this message
Sadi Yumuşak (sa-yu) wrote :

This annoying problem has been finally solved for me; THANKS A MILLION TO CzBix :-)
I hope the developers up there incorporate this soon.

Revision history for this message
Rik Shaw (rik-shaw) wrote :

CzBiX can you clarify your patch? It works but I am having trouble following the logic.

Revision history for this message
CzBiX (gliuwr) wrote :

@Rik Shaw, do you meaning the logic of patch?

I was dis-asm the file of glib, find the position of 'if condition' on line 44 in http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/glib2.0/vivid-proposed/revision/227#debian/patches/0001-Fix-trashing-on-overlayfs.patch
change the machine instruction to jump(0xeb), then this if block will be skipped.

It's just a simple hack to fix it. Compile source code without that patch is correct and more safer way.

Revision history for this message
Sadi Yumuşak (sa-yu) wrote :

UPDATE:

Sorry, in an attempt to make some progress in chasing this issue, I found myself making a new bug report here, and then marked this earlier bug report as a duplicate because I forgot it while wondering around the maze ;-)

Anyway I think we might achieve some progress there -- as I've managed to add Iain Lane, a Debian and Ubuntu developer who made that particular patch, to subscribers, and I guess he's now trying to find a fix for this problem without getting rid of that patch which he says is also essential.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.