This bug was fixed in the package glib2.0 - 2.51.0-2
glib2.0 (2.51.0-2) experimental; urgency=medium
* Merge changes from 2.50.2-2:
+ debian/rules: disable libmount on !linux (Closes: #844052)
+ debian/patches/0001-Fix-trashing-on-overlayfs.patch: Update with new
version from the upstream report to hopefully fix trashing of files in
directories which are symlinks to different devices. (Closes: #800047)
-- Iain Lane <la...@debian.org> Wed, 23 Nov 2016 17:36:07 +0000
** Changed in: glib2.0 (Ubuntu)
Status: Confirmed => Fix Released
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to glib2.0 in Ubuntu.
Files in the root of a folder on another partition symlinked to user's
home cannot be moved to trash because of a patch in this package
Status in glib2.0 package in Ubuntu:
Status in glib2.0 source package in Xenial:
Status in glib2.0 source package in Yakkety:
[ Description ]
Can't trash files if the directory they are in is a symlink to another
[ QA ]
1. Install system and partition disk into root and data partitions
2. create ~/Data folder, and mount data partition on it
3. create symlinks for ~/whatever/ to ~/Data/something/
4. delete files directly inside ~/whatever/
Then Nautilus says: "File can't be put in the trash. Do you want to delete it
What should happen:
The files moved into Trash.
[ Regression potential ]
The proposed fix uses g_stat instead of g_stat to follow symlinks, so
we know where to place the trash (you can't rename() across
filesystems). If that is wrong, then it could regress trashing other
kinds of files.
[ Original ]
I'm on Ubuntu 16.10 64-bit with libglib2.0-0 version 2.50.0-1.
I've reported this bug (or marked as "it affects me") in a couple of
other places before I've finally discovered that this is the package
that's causing this problem, which unfortunately has been around for a
couple of years now.
This bug has been reported upstream as well, but it's just taking very
very long to arrive at a decision and take action it seems.
Apparently one of the patches
trashing-on-overlayfs.patch/) which is here
to the original package which is here
is the root cause of this annoying problem.
As I prefer keeping one patition for the root filesystem (/), one
partition for user settings (/home) and one partition for user data
(Documents, Downloads, Drive, Music, Pictures, Public, Videos) which
are simply symlinked to my home folder for ease of use, I cannot move
any file to the trash in the root of these folders when I access them
from my home folder or nautilus sidebar.
This problem doesn't affect folders at all, nor any other files in
So I was wondering if Ubuntu devs can leave out that particular patch
when building this package for Ubuntu - if it doesn't cause more harm,
which I doubt.
Otherwise, I would appreciate if I could learn how to do it myself:
how can I (as an end-user) compile the contents of
"glib2.0_2.50.0.orig.tar.xz" with all the patches, etc. in
"glib2.0_2.50.0-1.debian.tar.xz" except "0001-Fix-trashing-on-
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~desktop-packages
Post to : email@example.com
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp