Don't show the "Export > win32 vector print" extension on Platforms that don't support it
Bug #1307554 reported by
Ryan Lerch
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
jazzynico |
Bug Description
The "Export > win32 vector print" extension shows on Platforms that don't support it.
Is there a way to remove it from the extensions list for all platforms other than Windows?
Related branches
tags: | added: extensions-plugins packaging |
Changed in inkscape: | |
status: | Triaged → In Progress |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
> Is there a way to remove it from the extensions list for all platforms other than Windows?
The current extension system just list all files with .inx in the extension directory and load them (if valid, eg all dependencies are met for the extension) indistinctly. Thus we can't filter OS specific extensions. wiki.inkscape. org/wiki/ index.php/ INX_extension_ descriptor_ format# DTD_XML_ schema). The current types are"executable" (tries to find the dependency in a specified location) or "extension" (the id for the extension is looked up in the database). We could have a new "system" type to test the operating system.
I see two possibilities:
1. (ugly, but easy workaround) Exclude the extension from the appropriate Makefile.am file. If the INX file is not present in the extension installation folder, it is not loaded. The build system for Windows is a bit different and don't use the Makefile.am file, and thus the extension is not excluded.
2. (preferred) Add a new value for the type attribute of the dependency element (in the INX Schema, see http://
I'm going to try solution 2...