Comment 10 for bug 1307554

Revision history for this message
jazzynico (jazzynico) wrote :

With the v2 patch, one can include (win) or exclude (notwin) extensions for Windows. All other values are ignored and the test just doesn't fail.

I'm still not sure it's a good idea. And even if we implement it I feel it shouldn't be made public (which is difficult since we can't prevent users from mimicking existing official extensions) or at least strongly discourage its use.

An alternative could be to create a win32 only extensions list in the C++ code directly (I'd see it in Extension::check(), from src/extension/extension.cpp). If the extension ID is com.vaxxine.print.win32, then we don't load it on Windows. Less flexible than the INX schema, but at least we keep control of the special cases, and we don't change the schema. Of course, If new extensions dedicated to a specific OS are added in the future, we could reconsider that option and work again on the INX schema.

As usual, comments are welcome.