[Webkit-unassigned] [Bug 252263] New: [GLib] Get rid of bundled xdgmime
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 14 13:28:35 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=252263
Bug ID: 252263
Summary: [GLib] Get rid of bundled xdgmime
Product: WebKit
Version: WebKit Nightly Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at gnome.org
CC: bugs-noreply at webkitgtk.org
This is more a goal than something we can do today. Source/ThirdParty/xdgmime is currently used only by MIMETypeRegistryXdg.cpp. We use two functions: xdg_mime_get_mime_type_from_file_name(), which can probably be replaced with one call to g_content_type_guess() with NULL data parameter, and xdg_mime_get_simple_globs(). To drop our bundled xdgmime we would need to expose a new GLib API to replace xdg_mime_get_simple_globs(). We could call it, say, g_content_type_get_preferred_extension(). Then we'd only need our own bundled xdgmime when building against older GLib. (Of course, with newer GLib we'd just wind up using GLib's bundled xdgmime instead, but that's still an improvement.)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230214/639e0941/attachment-0001.htm>
More information about the webkit-unassigned
mailing list