Desktop, File Browser & Command Line
Personally, I have created a
/home/bin directory to keep scripts for occasions like this.
$ sudo mkdir /home/bin
Just make sure that for every user the directory
/home/bin is accessible:
$ sudo chmod +rx /home/bin
Furthermore the new directory should be listed as
PATH="/home/bin:$PATH" in the
~/.profile file of every user or wherever
PATH happens to be defined on your system.
bash script as
jabref in the newly created
# Run the latest version.
java -jar $(ls -1v $INSTALLDIR/JabRef*.jar |tail -n 1) $@ &
bash script should be made executable with:
$ sudo chmod +x jabref
The script will open the latest version of
JabRef*.jav previously saved in
/home/opt/jabref/ with any yet existing desktop launcher or any file browser integration. Simply typing
jabref at the command line also works.