2 [ ! -d ~
/.starfarer
] && mkdir ~
/.starfarer
3 [ ! -d ~
/.starfarer
/saves
] && mkdir ~
/.starfarer
/saves
4 [ ! -d ~
/.starfarer
/screenshots
] && mkdir ~
/.starfarer
/screenshots
5 [ ! -d ~
/.starfarer
/mods
] && mkdir ~
/.starfarer
/mods
7 for name
in /usr
/share
/java
/starfarer
/*.jar
; do
11 cd /usr
/share
/starfarer
13 SAVEPATH
=~
/.starfarer
/saves
14 MODPATH
=~
/.starfarer
/mods
15 SCRPATH
=~
/.starfarer
/screenshots
18 export LD_LIBRARY_PATH
="$JAVA_HOME/lib/$$ARCHITECTURE$$"
20 exec java
-Djava.library.path
=/usr
/lib
/starfarer
-Xms256m -Xmx256m -cp $CP -Dcom.fs.starfarer.settings.paths.saves
=$SAVEPATH -Dcom.fs.starfarer.settings.paths.screenshots
=$SCRPATH -Dcom.fs.starfarer.settings.paths.mods
=$MODPATH -Dcom.fs.starfarer.settings.paths.logs
=$LOGPATH com.fs.starfarer.StarfarerLauncher