Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: [Linux] Please add shebang to starsector.sh  (Read 1398 times)

736b

  • Lieutenant
  • **
  • Posts: 87
    • View Profile
[Linux] Please add shebang to starsector.sh
« on: July 19, 2018, 07:54:29 AM »

I made a Lutris installer for 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.
Logged

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2806
    • View Profile
    • Sc2Mafia
Re: [Linux] Please add shebang to starsector.sh
« Reply #1 on: July 19, 2018, 04:06:25 PM »

It’s kind of weird that it’s not there to begin with.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24114
    • View Profile
Re: [Linux] Please add shebang to starsector.sh
« Reply #2 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...
Logged