export-filename must store relative path with / slashes

Bug #168504 reported by Rickbeton on 2007-03-21
Affects Status Importance Assigned to Milestone

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:export-filename.

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

My recommendation:

1. if at all possible, compute the relative pathname when exporting so that
inkscape:export-filename holds a relative pathname. Only use an absolute
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.

Originator: NO

docbase is already removed in SVN

Bryce Harrington (bryce) on 2008-02-02
Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
jazzynico (jazzynico) on 2014-03-16
Changed in inkscape:
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers