Since GVFS has replaced GnomeVFS in Gnome 2.22, I think xdg-mime should try to use gvfs-info if it exists before trying gnomevfs-info. The utilities are similar, but the output is a bit different, so it must be parsed differently. Something like: gvfs-info -a standard::content-type "$file" | grep 'standard::content-type:' | cut -d' ' -f4
I'm rising the priority because gnome-vfs is now deprecated and this bug has not been fixed. An ubuntu user also proposes a workaround here: https://bugs.launchpad.net/xdg-utils/+bug/376827 So, I propose a mixture between both: gvfs-info "$file" 2> /dev/null | grep standard::content-type |cut -d' ' -f4
PING! Can anyone commit it, please?
taking a look tomorrow morning. You can expect it fixed in 12h. thanks for your patience.
http://webcvs.freedesktop.org/portland/portland/xdg-utils/scripts/xdg-mime.in?r1=1.47&r2=1.48
Thanks a lot, Fathi! :)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.