In the apt
version of octave, I can use the command octave script.m
to execute the file script.m
. Similarly flatpak run org.octave.Octave script.m
works too.
However, to avoid the long command flatpak run org.octave.Octave
, I created a file ~.local/bin/octave
with the contents flatpak run org.octave.Octave
, and marked it as executable (I already removed the apt
version of Octave). While it runs octave just fine, octave script.m
does not work anymore, it only opens the command line version of Octave.
I know that I can open Octave and run the script from within, but I am interested to know if the script can be directly run from terminal with the flatpak version of Octave.