Path of original file not included in temporary file passed to extension

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

Bug Description

Yesterday, I downloaded Inkscape 0.91 (the 32 bit pre-compiled version, I run windows 7) and found the following:

When writing extensions for Inkscape, it is useful to know the original file name and its path (I use this information to save a new version of the file in the same directory). The temporary file passed as an argument to extensions in Inkscape 0.91 no longer contains the full path of the original file, but rather just the file name. In Inkscape 0.48.5, the full path is provided.

More specifically, in version 0.91, the temporary file will contain the line:

sodipodi:docname="current_sinusoidal.svg">

with the original file name "current_sinusoidal.svg" in my case, whereas version 0.48.5 will contain a line looking something like

sodipodi:docname="C:\myfolder\current_sinusoidal.svg">

with the absolute path.

Revision history for this message
Simon (wakeboard2) wrote :

Actually, after further testing, in version 0.48.5, sometimes the absolute path is there, sometimes its just the filename alone.

It looks like when you first open up a .svg file and call an extension, the absolute path will be provided. Then if you make a change to the file, save the changes and call the extension, only the filename is given in the temporary file. This behavior is for 0.48.5, I haven't tested 0.91.

jazzynico (jazzynico)
tags: added: extensions-plugins
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.