Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.9.1a is out! (05/10/19); Blog post: Skills and Story Points (07/08/19)

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

null

  • 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: 2513
    • View Profile
    • Sc2Mafia
    • Email
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: 14041
    • 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