[OSX] 0.91: Command line invocation cannot find svg file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
In 0.48, the following worked fine. I've just upgraded to 0.91, and now it doesn't work:
Julians-MacBook-Pro $ /Applications/
** (inkscape-
** (inkscape-
** (inkscape-
Julians-MacBook-Pro $ ls
pic1.svg pic3.svg pic5.svg pic7.svg
pic2.svg pic4.svg pic6.svg
I tried running dtruss on this, and it doesn't even seem to attempt to open pic1.svg (but that may be a failure in the dtruss output to display the correct information).
I then tried running the same command again, but this time putting in complete pathnames, replacing pic1.svg with `pwd`/pic1.svg and it succeeded, but it placed pic1.pdf in the directory /Application/
My guess is that somewhere the binary is doing a chdir, but why is beyond me.
I haven't yet had a chance to test 0.91 on any other operating systems.
You need to use absolute paths for any (all) files referenced on the command line (with '/Applications/ Inkscape. app/Contents/ Resources/ script' you had to do this with Inkscape 0.48 too btw) - a known limitation with the current structure of X11-based, self-contained and fully relocatable application bundles for OS X (which are not optimized for such command line usage btw - it is recommended to install a regular command line build of inkscape via MacPorts, Fink or Homebrew if using it on the command line is the major use case).
Proposing to link as duplicate to /bugs.launchpad .net/inkscape/ +bug/181639
* Bug #181639 “Command-line invocation on Mac OSX partially broken”
https:/