[Bug 12464] ShellExecute does not integrate well with external handlers

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Apr 28 23:35:14 CDT 2013


http://bugs.winehq.org/show_bug.cgi?id=12464

--- Comment #22 from MestreLion <wine at rodrigosilva.com> 2013-04-28 23:35:14 CDT ---
I've made a small utility that scans MIME database (both system and user) and
register *all* known native mime-types in Windows registry.

It uses xdg-open to open if there is a default (native) application for that
mime type, otherwise uses packagekit to search for a package that can handle
that file (just like what Nautilus does)

By default it only registers native types that have no handler in windows
registry, but it can also override such associations (so, for example, jpeg
files are opened in native viewer instead of the default Gecko wine browser).
It can also ignore some extensions even if they have no handler in windows.

It tries its best to be winemenubuilder-friendly, meaning all associations it
creates is not published as native associations (or as x-wine-extension
mimetypes) by winemenubuilder, which would be ugly and potentially cause loops.
This is very tricky and not yet perfect, specially with mixed-case extensions
(.C and .c for example)

That said, I hope this script is helful for everyone:

https://github.com/MestreLion/wine-tools/blob/master/wine-import-extensions

Improvements welcome!

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list