export-filename must store relative path with / slashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Medium
|
Unassigned |
Bug Description
When saving an SVG drawing, Inkscape normally inserts the inkscape and
sodipodi namespaces, which is generally useful.
However there are (at least) two attributes in the SVG drawing that contain
absolute pathnames. Worse, on Windows, the absolute pathnames use
Windows-formatted filenames (i.e. backslashes instead of forward slashes).
The two attributes are sodopodi:docbase and inkscape:
Because the file paths are absolue, Inkscape will handle such drawings
badly if the user has moved the drawing files into other folders, or copied
them to other machines. This is almost certain to happen if the drawings
are stored in a source code repository or otherwise shared between team
members.
My recommendation:
1. if at all possible, compute the relative pathname when exporting so that
inkscape:
pathname as a last resort.
2. store the export filename using Posix-compliant path syntax with forward
slashes. This will work on Windows, Linux, MacOS etc.
3. stop using the sodipodi:docbase attribute entirely.
Changed in inkscape: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in inkscape: | |
status: | Confirmed → Triaged |
Originator: NO
docbase is already removed in SVN