Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inkscape: enable command-line support #9797

Merged
merged 1 commit into from
Feb 28, 2015
Merged

Conversation

psibre
Copy link
Contributor

@psibre psibre commented Feb 27, 2015

see https://inkscape.org/en/doc/inkscape-man.html

Note: Running inkscape from the command line changes the working
directory to #{staged_path} (i.e.,
/opt/homebrew-cask/Caskroom/inkscape/0.91-1/Inkscape.app), which
means that all file arguments should be given as absolute paths.

There is a shim script in Inkscape.app/Contents/Resources/script,
but it doesn't solve this issue any further than simply running
Inkscape.app/Contents/Resources/bin/inkscape.

See also http://wiki.inkscape.org/wiki/index.php/MacOS_X#Inkscape_command_line

see https://inkscape.org/en/doc/inkscape-man.html

**Note:** Running `inkscape` from the command line changes the working
directory to `#{staged_path}` (i.e.,
`/opt/homebrew-cask/Caskroom/inkscape/0.91-1/Inkscape.app`), which
means that all file arguments should be given as *absolute paths*.

There is a shim script in `Inkscape.app/Contents/Resources/script`,
but it doesn't solve this issue any further than simply running
`Inkscape.app/Contents/Resources/bin/inkscape`.

See also http://wiki.inkscape.org/wiki/index.php/MacOS_X#Inkscape_command_line
@phinze
Copy link
Contributor

phinze commented Feb 28, 2015

Cool - thanks for this!

phinze added a commit that referenced this pull request Feb 28, 2015
inkscape: enable command-line support
@phinze phinze merged commit d29cc64 into Homebrew:master Feb 28, 2015
@psibre
Copy link
Contributor Author

psibre commented Feb 28, 2015

Glad to help where I can.
The shim script provided by upstream (mentioned in the commit message and above) should be replaced, patched, or something, but if this is done in the cask, I'll hold my breath for a consensus in #9203. Meanwhile, command line use of inkscape will probably happen mostly in other scripts, where it should be easy to run it with absolute file paths.

@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants