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.
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:
So, I propose a mixture between both:
gvfs-info "$file" 2> /dev/null | grep standard::content-type |cut -d' ' -f4
Can anyone commit it, please?
taking a look tomorrow morning.
You can expect it fixed in 12h.
thanks for your patience.
Thanks a lot, Fathi! :)