[Pkg-deepin-devel] Bug#969771: deepin-music: Please do not use gvfs-trash

Simon McVittie smcv at debian.org
Tue Sep 8 00:06:28 BST 2020


Source: deepin-music
Version: 5.0.1+ds-2
Severity: important
User: pkg-gnome-maintainers at lists.alioth.debian.org
Usertags: gvfs-bin-deprecation

deepin-music appears to contain a call to the deprecated gvfs-trash(1)
utility, but does not depend on the package containing that utility.

gvfs-trash was superseded by gio(1) in 2015 and removed from upstream GNOME
in 2018. It is currently still available in the gvfs-bin package as a
Debian-specific addition, but we want to remove it before Debian 11.

The best way to send files to the trash is to use an appropriate platform
API, such as GLib's g_file_trash() or g_file_trash_async(), or the
equivalent that presumably exists in Qt. The upstream source code of
deepin-music seems to have an API call that is used in Flatpak environments:
perhaps it would work to use that code path unconditionally?

If that is not possible, you can use the "gio trash" command, with a
dependency on libglib2.0-bin. See gio(1).

I am not intending to let this bug block the removal of the gvfs-bin package.

Thanks,
    smcv



More information about the Pkg-deepin-devel mailing list