--without-gui crashes if home dir not writable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Bryce Harrington |
Bug Description
Trying to use Inkscape headless for SVG to PNG conversion from a
web application, I discovered that inkscape will crash if it can't
create ~/.inkscape.
Command line is like this:
inkscape -z -w 123 -f some/file.svg -e someother/file.png
Stack trace (attached) shows a long series of GTK+ functions
leading back to inkscape_
the directory leads to running a GTK+ message dialog. Since we're
running without an X server this naturally fails!
On Mac OS X, Apache runs as the user 'www', whose home
directory is /Library/WebServer and is writable only to root and
members of the admin group. Red Hat/Fedora Linux is similar with
'apache' homed at /var/www, which is root-only-writable.
If I first create a /Library/
write to, everything works fine from there...
If it's absolutely necessary to have an ~/.inkscape to run, it
probably should output the error messages with a nice printf() or
something when using the -z/--without-gui option.
I should add that this is with 0.39, built with fink on Mac OS X 10.3. I'm
experiencing the same problem also with sodipodi 0.34, and that part of
the code seems to be substantially similar.