Lines 4 and 5 in starsector.sh:
JAVA7=/usr/lib/jvm/$(archlinux-java status | grep -m 1 java-7 | sed 's/^ *//')/bin
[ -d ${JAVA7} ] && export PATH=${JAVA7}:${PATH}
I don't think this bit actually works. If you run starsector
from a terminal, the first line of output shows:
/usr/bin/starsector: line 5: [: /usr/lib/jvm/java-7-openjdk/jre: binary operator expected
The only java I have installed on my system is the java7 that gets pulled in by this package. archlinux-java status
returns " java-7-openjdk/jre (default)", and it looks like the sed
removes the leading whitespace, but the " (default)" on the end of the line still needs to be handled. Since it doesn't get removed, it gets passed as a second argument to [ -d ${JAVA7} ] && export
and the export doesn't actually run.
Starsector still launches though (in my case) because PATH already has /usr/lib/jvm/default/bin
thanks to /etc/profile.d/jre.sh
that gets installed by the java7 dependency.
Pinned Comments
pschichtel commented on 2022-12-11 15:35 (UTC) (edited on 2023-05-06 11:18 (UTC) by pschichtel)
0.95.1a_RC6-2 changed a bunch things that might need manual corrections after upgrading from earlier version:
mv "$HOME/.starsector" "$HOME/.local/share/starsector"
should do the trick$HOME/.config/starsector/startup.sh
which supports two variables (bash arrays):jvm_args
andprogram_args
. So e.g. if you customized the memory settings in the start script, you might want to move the changes to either of these variables (e.g. like this:jvm_args=(-Xms1536m -Xmx1536m -Xss2048k)
).