[OSX] can't launch inkscape from the console (Inkscape.app)
Bug #793227 reported by
Paaguti-hotmail
This bug report is a duplicate of:
Bug #181639: Command-line invocation on Mac OSX partially broken.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
OSX 10.6.5
Inkscape.app version 0.48.1 r9760
I need to be able to convert some .SVG files into .PDF using the command line (well, through GNU Make) in a Linux compatible manner. I'm working on my PhD with a Linux and a Mac and I'd like to be able to have a uniform editing environment.
Workaround: I have put the attached file in my PATH and I can issue commands like
inkscape -z --export-
Caveats: The first time the script is called, it will activate the X11 environment and the
call will not be very fast. From then on, the conversions are as fast as in Linux.
Related:
Bug #181639 “Command-line invocation on Mac OSX partially broken”
tags: |
added: cli packaging removed: from launch shell workaround |
summary: |
- [OSX] can't launch inkscape from the console + [OSX] can't launch inkscape from the console (Inkscape.app) |
description: | updated |
To post a comment you must log in.
Drawback of the proposed solution/ workaround: it won't work with file formats which depend on an script-based extension, or more complex command line usage (e.g. involving verbs executing extensions or filter effects): the script does not fully set the required shell environment, and the inkscape process launched with this command is not able e.g. to load any extension files, or predefined filter effect from the shared resources included in the application bundle.
A better solution would be to call '/Applications/ Inkscape. app/Contents/ Resources/ script' instead, with the drawback that files provided as command line arguments then always must be referenced with their full (absolute) path names. When used within other scripts, this isn't really a problem (it might be more cumbersome though for occasional usage on the command line).