Package: xdg-utils Version: 1.1.1-1+deb9u1 Followup-For: Bug #838120 Tags: patch
xdg-mime should not just give up if neither gvfs-info nor gnomevfs-info are present. I therefore attach a trivial patch adding the obvious else statement, for your consideration. -- System Information: Debian Release: 9.7 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'oldstable-updates'), (500, 'stable'), (500, 'oldstable'), (480, 'testing'), (470, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) xdg-utils depends on no packages. Versions of packages xdg-utils recommends: pn libfile-mimeinfo-perl <none> pn libnet-dbus-perl <none> pn libx11-protocol-perl <none> ii x11-utils 7.7+3+b1 ii x11-xserver-utils 7.7+7+b1 Versions of packages xdg-utils suggests: pn gvfs-bin <none> -- no debconf information
--- /usr/bin/xdg-mime 2018-05-20 17:44:40.000000000 +0800 +++ xdg-mime 2019-03-09 16:48:13.391515286 +0800 @@ -636,6 +636,10 @@ elif gnomevfs-info --help 2>/dev/null 1>&2; then DEBUG 1 "Running gnomevfs-info \"$1\"" gnomevfs-info --slow-mime "$1" 2> /dev/null | grep "^MIME" | cut -d ":" -f 2 | sed s/"^ "// + else + # maybe we're not as Gnome-y as we think we are? Fall back to generic method. + DEBUG 1 "Falling back to generic method" + info_generic "$@" fi if [ $? -eq 0 ]; then