This bug was fixed in the package glib2.0 - 2.46.1-1 --------------- glib2.0 (2.46.1-1) unstable; urgency=medium
[ Michael Biebl ] * Drop clean-la.mk from debian/rules, no longer required. [ Iain Lane ] * New upstream release 2.46.1 + Remove system_header pragma (should fix lack of warnings with things like g_return_if_fail) + move GStrv typedef (and auto-cleanup) from libgobject to libglib + fix order of trashing files to be closer to what is required in the specification. Namely, trashinfo files are written first. This should fix issues with the gvfs trash backend failing to correctly read the info for recently trashed files (preventing 'restore'). (Closes: #800491) (LP: #1495943) + tweak mime logic to return text/plain on all empty files instead of returning application/octet-stream. This includes files that have extensions that imply that they may be other types of files, which is a slight change of behaviour with respect to old GLib versions. (LP: #1497170) * debian/patches/0001-Revert-list-store-Fix-a-parameter-check.patch: Drop - this is applied upstream in this release. * debian/patches/0001-GDateTime-test-fix-occasional-failures.patch: Take patch from bgo#754994 to resolve intermittent test failures in the GDateTime tests. -- Iain Lane <i...@orangesquash.org.uk> Thu, 15 Oct 2015 16:08:30 +0100 ** 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. https://bugs.launchpad.net/bugs/1495943 Title: gvfs-trash doesn't add "trash::" attrs to file which is moved to Trash Status in GLib: Fix Released Status in glib2.0 package in Ubuntu: Fix Released Status in gvfs package in Ubuntu: Fix Released Status in glib2.0 package in Debian: Confirmed Bug description: [System] Ubuntu MATE 15.10, fully updated. [Steps to reproduce] 1. Create an empty file: touch ~/test 2. Move it to trash: gvfs-trash ~/test 3. Launch some file manager, browse Trash folder and try to restore the file. I've tested it with the following file managers: Caja, Nemo, Nautilus and Thunar. [Expected result] The file should be restored to its original location. [What happens instead] The file manager complains that it can't determine the original location of the file, and so doesn't restore it. [Details] When moving file to Trash, gvfs-trash does not add trash::orig-path and trash::deletion-date attributes to it. Without that the file manager can't determine the original location of the file, and hence can't restore it. You can check the file attributes by printing the moved file's info: gvfs-info trash:///test [Regression description] Restoring the files has been working fine in Ubuntu 14.04 and 15.04. This bug appeared only in 15.10, so it's a regression. You can see the gvfs-info output from 15.04 and 15.10 in the attachments below. To manage notifications about this bug go to: https://bugs.launchpad.net/glib/+bug/1495943/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp