Fractal Softworks Forum

Starsector => Bug Reports & Support => Topic started by: 736b on July 19, 2018, 07:54:29 AM

Title: [Linux] Please add shebang to starsector.sh
Post by: 736b on July 19, 2018, 07:54:29 AM
I made a Lutris installer for Starsector (https://lutris.net/games/starsector/), but because the shell script for starting the game on Linux is missing the shebang, Lutris just prints an error (apparently a limitation of Python, according to https://github.com/lutris/lutris/issues/306).

For now I worked around that by setting the game executable to jre_linux/bin/java with the relevant arguments, but it'd make it simpler if you could just add
Code
#!/bin/sh
as first line in the starsector.sh script.
Title: Re: [Linux] Please add shebang to starsector.sh
Post by: Dark.Revenant on July 19, 2018, 04:06:25 PM
It’s kind of weird that it’s not there to begin with.
Title: Re: [Linux] Please add shebang to starsector.sh
Post by: Alex on July 19, 2018, 05:39:27 PM
Hmm. I'm not sure (50/50 or so) but I seem to recall maybe doing it this way for a reason. Wish I remembered what the reason was, though. It's possible that it didn't work with the #!/bin/sh for whatever reason under some set of circumstances...