export-filename must store relative path with / slashes

Bug #168504 reported by Rickbeton
4
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: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
members.

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.

Tags: saving
Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

docbase is already removed in SVN

Bryce Harrington (bryce)
Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
jazzynico (jazzynico)
Changed in inkscape:
status: Confirmed → Triaged
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.