Bug 15828

Summary: xdg-mime should try gvfs-info before gnomevfs-info
Product: Portland Reporter: Per Olofsson <pelle>
Component: xdg-utilsAssignee: Fathi Boudra <fabo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: pablo
Version: 1.0   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 23105    

Description Per Olofsson 2008-05-05 02:50:39 UTC
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
Comment 1 Pablo Castellano (pablog) 2010-01-23 10:14:41 UTC
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


Comment 2 Pablo Castellano (pablog) 2010-02-20 10:32:00 UTC
PING!

Can anyone commit it, please?
Comment 3 Fathi Boudra 2010-02-20 11:21:27 UTC
taking a look tomorrow morning.
You can expect it fixed in 12h.
thanks for your patience.
Comment 5 Pablo Castellano (pablog) 2010-02-20 13:03:54 UTC
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.