Invalid preferences.xml prompt caused by an extension script
Bug #626608 reported by
Andrew Noble
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Medium
|
Unassigned |
Bug Description
You can just write any id having a slash character. Such as:
<inkscape-
<_name>
<id>python.
The id is registered to preferences.xml which will cause the prompt on the next Inkscape start.
Related topic in InkscapeForum.com:
<http://
tags: | added: extensions-plugins |
To post a comment you must log in.
Can you attach your extension files? What platform are you working on, with which Inkscape version?
When testing this type of 'id' (an URL with sub-directory, using a slash) with an existing 'effect' extension (a copy of 'Modify Path > Scatter...' in ~/.config/ extensions) :
<?xml version="1.0" encoding="UTF-8"?> www.inkscape. org/namespace/ inkscape/ extension"> mysite. com/svg2css< /_name> mysite. com/svg2css< /id>
<inkscape-extension xmlns="http://
<_name>Scatter (LeWitt) python.
<id>python.
Inkscape stores the settings in preferences.xml inside a group like this:
<group
svg2css. follow= "1"
svg2css. grouppick= "1"
svg2css. pickmode= "rand"
svg2css. toffset= "0"
svg2css. noffset= "0"
svg2css. space=" 5"
id="python. mysite. com"
svg2css. duplicate= "1"
svg2css. copymode= "copy" />
</group>
Inkscape does launch after a restart without error reading the preferences file and also correctly loads the previously used settings for the extension dialog.
(tested with Inkscape 0.48+devel r9731 on OS X 10.5.8)