You are only browsing one thread in the discussion! All comments are available on the post page.

Return

OmnipotentEntity , (edited )
@OmnipotentEntity@beehaw.org avatar

Put a shell script in your PATH named inkscape with the following content:


<span style="color:#323232;">#!/bin/sh
</span><span style="color:#323232;">
</span><span style="color:#323232;">flatpak run org.inkscape.Inkscape
</span>

Note that you can use a local folder in your home directory to house small executables and scripts like this, so you don’t have to touch your system config. I generally recommend using something like ~/.local/bin and add it to your PATH via your Shell’s RC file.

SSUPII ,

Or instead just make it an alias in your .bashrc

cyberwolfie OP ,

How does this deal with any flags passed?

OmnipotentEntity , (edited )
@OmnipotentEntity@beehaw.org avatar

If you need to pass flags you can use


<span style="color:#323232;">flatpak run org.inkscape.Inkscape "$@"
</span>

To forward all of the arguments to the script. Note that this might be a bashism, so you might need to change your hash bang to /bin/bash as well. Double check though.

(An easy way to check if something is working as you assume is just prepend the line with echo.)

gnuhaut ,

This is not a bashism. It’ll work fine with any sh.

OmnipotentEntity ,
@OmnipotentEntity@beehaw.org avatar

Thanks, I wasn’t sure it worked in sh. I’ve been surprised a lot before by seemingly simple stuff like this.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • linux@lemmy.ml
  • All magazines