Bug#877068: gvfs: version 1.34 breaks xdg-mime query filetype

Michael Biebl biebl at debian.org
Thu Sep 28 11:27:08 UTC 2017


Am 28.09.2017 um 12:54 schrieb definetti:
> Package: gvfs
> Version: 1.30.4-1+b1
> Severity: critical
> Justification: breaks unrelated software
> 
> Dear Maintainer,
> 
> upon upgrading to gvfs 1.34.0-2, commands like xdg-mime query filetype, that
> depend on it, no longer work. This causes xdg-open to be unable to associate
> the right applications to each mimetype.
> Reverting to gvfs 1.30 solves the issue

gvfs-info has been deprecated:



#!/bin/sh

replacement="gio info"
help="gio help info"

>&2 echo "This tool has been deprecated, use '$replacement' instead."
>&2 echo "See '$help' for more info."
>&2 echo

if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then
  exec $help "$@:2"
else
  exec $replacement "$@"
fi



xdg-mime calls it like this:

    if gvfs-info --help 2>/dev/null 1>&2; then

Unfortunately there is a bashism in the script above which breaks --help
("==" should be replaced by "=").

There are two issues to fix here: we need to fix the bashism in gvfs and
we should update xdg-utils to use gio directly.

Can you confirm that replacing "==" with "=" in /usr/bin/gvfs-info fixes
xdg-mime?

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20170928/540aab44/attachment-0001.sig>


More information about the pkg-gnome-maintainers mailing list