Inkscape.org
Beginners' Questions Inkscape Command Line w/Flatpak
  1. #1
    pauls pauls @pauls

    I installed Inkscape using flatpak - how do I run inkscape commands in Linux terminal?Β  With an older version of Inkscape, I used to be able to type something like "inkscape $file --query-width --query-id text4386".

    Now I get the message, "inkscape not found".

  2. #2
    GerBNL GerBNL @GerBNL
    *

    @pauls: I had nothing but trouble with flatpak. Chances are your problem can be solved easily by creating an alias or adding stuff to your path. I would help though if you gave us more info, like about your system/distro. Anyway, if your problem is with flatpak, it might be better to visit their forums: https://discourse.flathub.org/

    Is there a reason why you're not installing from an AppImage or the ppa solutions (as describedΒ here )?Β  I installed 1.3 on linux mint 21.2 with no problem whatsoever (yet).

  3. #3
    pauls pauls @pauls

    Thank you, GerBNL - I ended up uninstalling the flatpak version and installing 1.3 from the ppa, which solved my problem.Β  Now, I need to figure out how to open an inkscape shell and feed it a bash script.

  4. #4
    QuazarOmega QuazarOmega @QuazarOmega

    I had success by running this command:

    flatpak run org.inkscape.Inkscape relative/path/to/file.svg --query-width --query-id path987

    So basically you just need to run it as you would any Flatpak application from the command line, doesn't look like there are any caveats regarding file paths (using absolute or relative both work)

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Inkscape Command Line w/Flatpak