Giter VIP home page Giter VIP logo

Comments (6)

gillescastel avatar gillescastel commented on August 17, 2024 1

Thanks for your input! Relevant Inkscape (outdated?) docs: MacOSX#Inkscape command line. A bit confusing to be honest. I think we should probably

  1. check if inkscape is in the path (checkout return code of which inkscape)
  2. check if /Applications/Inkscape.app/Contents/Resources/bin/inkscape exists
  3. check if /Applications/Inkscape.app/Contents/MacOS/inkscape exists,

and depending on that execute the right file. Sounds good?

from inkscape-figures.

gillescastel avatar gillescastel commented on August 17, 2024

Not familiar with MacOS, but I think the code as is should work if your path is setup correctly, so I'm hesitant to change it right now. What are your thoughts @pierreglaser?

from inkscape-figures.

pierreglaser avatar pierreglaser commented on August 17, 2024

inkscape is not so straightfoward to install on MacOS, and I may have symlink-ed inkscape to some place in my $PATH at some point in the process when developing inkscape-figures MacOS suppport. Apologies if this ended up breaking your setup @adir-ux.

/Applications/Inkscape.app/Contents/MacOS/inkscape sounds like a reasonable place for an Inkscape executable to be on MacOS. But so is $PATH. So if we want to support the two, we will need some form of fallback mechanism. Is there any guidelines from the inkscape folks on how to launch inkscape from the command line in MacOS? If not, I would be slightly in favor of supporting @adir-ux 's situation.

from inkscape-figures.

adir-ux avatar adir-ux commented on August 17, 2024

if set to /Applications/Inkscape , would it check the PATH as well?

on Inkscape wiki I found this link to /usr/local/bin
sudo ln -s /Applications/Inkscape.app/Contents/Resources/bin/inkscape /usr/local/bin

but running
/Applications/Inkscape.app/Contents/Resources/bin/inkscape
returns "no such file or directory", so I assume it applies only to the older xquartz versions.

someone on StackOverflow suggested the location I pointed.
https://stackoverflow.com/a/60068607

from inkscape-figures.

adir-ux avatar adir-ux commented on August 17, 2024

sounds great.

from inkscape-figures.

gillescastel avatar gillescastel commented on August 17, 2024

Moved off-topic conversation to issue #23.

from inkscape-figures.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.