User-installed extension leads to duplicate menu item on Linux

Bug #1713085 reported by Gerv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

STR:

* Using Inkscape 0.91 from Ubuntu 16.04 repos
* Install the Eggbot extensions from https://github.com/evil-mad/EggBot/releases

Inkscape 0.91 includes the "Hershey Text..." extension in the Render menu. The Eggbot extensions contain an updated version of this extension with the same name.

Result:

* Two menu items in the Render submenu called "Hershey Text...", both of which trigger the user-installed version of the extension.

Expected:

One of the following:

A) A single menu item for the user-installed extension
B) A single menu item for the most recently-installed extension
C) A single menu item for the extension with the higher version number
D) (Not as good) Two menu items, one for each version of the extension, ideally with one of the names tweaked programmatically to disambiguate

I think it's better to have just one entry. It seems to me that .inx files contain neither a unique "extension ID", nor a version number, so one has to determine whether two extensions are "the same" using the name (a bit error-prone) and then decide which one is preferred using some data external to the extension.

I would propose that user-installed extensions always override built-in extensions of the same name.

Gerv

Revision history for this message
Windell Oskay (windell) wrote :

Best practice here may be to suggest that user-installed extensions (if having the same name as those bundled) should be installed in the main extensions directory itself, rather than in ~/.config/inkscape/extensions/

Revision history for this message
Gerv (gerv-launchpad) wrote :

The trouble with that is that users might not have write access to the main extensions directory; I certainly don't without becoming a super-user, and the whole point of a system with a package manager is that it manages all that stuff for me. If I mess with the files, and then my system tries to upgrade me to the newest Ubuntu with Inkscape 0.92, I then have a conflict I have to resolve. The whole point of having a user extensions directory is so you can install extensions without having to mess with the main installation, and extensions can be installed per-user. AIUI, this is a fairly standard model for extendable software like Inkscape.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.