On 03/26/2011 03:07 AM, Per Olofsson wrote: > 2011-03-17 15:13, Scott Ritchie skrev: >> Running mimetype foo.pdf does indeed work with libfile-mimeinfo-perl >> installed (without gvfs-bin), however xdg-utils doesn't seem to actually >> use it, as I still get no output for xdg-mime query even with >> libfile-mimeinfo-perl installed. > > Maybe in Ubuntu, but the latest version of xdg-utils in Debian unstable > should use libfile-mimeinfo-perl if available. >
Natty still has this bug and shares the same version of xdg-utils and libfile-mimeinfo-perl, which were synced from Debian. I did some testing and found that the bug is indeed shared between Ubuntu and Debian, however it's obscured on Debian. Apparently xdg-mime will assume gnomevfs-info is available if it's running within Gnome, even if it is not. On Debian this is only noticable if you manually remove gvfs-bin package (which isn't installed by default on Ubuntu). So, on Unstable Gnome with gvfs-bin removed and on Natty Gnome: $ touch foo.txt $ export XDG_UTILS_DEBUG_LEVEL=10 $ xdg-mime query filetype foo.txt Running gnomevfs-info "/home/scott/foo.txt" On Unstable virtual terminal (ctrl+alt+f1) or on Natty virtual terminal: $ touch foo.txt $ export XDG_UTILS_DEBUG_LEVEL=10 $ xdg-mime query filetype foo.txt Running mimetype -b "/home/scott/foo.txt" text/plain -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

