[Portland-bugs] [Bug 30449] xdg-mime ought to use shared-mime-info

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 5 14:25:33 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=30449

--- Comment #2 from Dan <danmbox at gmail.com> 2011-01-05 14:25:33 PST ---
Yes, there is no shell-accessible api. However, how about using info_gnome or
info_kde for determining the mime type? Either would be superior to "file -i".

I can understand the point about *default application* being different under
KDE vs Gnome vs XFCE. But the Mime Type? 

Please, consider that there are people using Fluxbox (or even "worse"). There
is no point in trying to make the scripts overly neutral (or whatever the
thinking was that led to creating separate info_gnome, info_kde and
info_generic functions).

The fix is simple: In info_generic, check

if which gvfs_info; then info_gnome "$@"
elif which kmimetypefinder; then info_kde "$@"
else
# use file -i
fi

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Portland-bugs mailing list