Unable to Run Scripts
I'm unable run non steam launcher or Severed Chains scripts they open as text files.
14 Replies
make sure they're marked as executable
ps, we do not recommend using non-steam launchers under any circumstance
It breaks every single wine best practice
and is a ticking time bomb
Lutris is included to handle that use case
Still unable to launch.
I'll follow your recommendation about NSL and Lutris.
Can you take a screenshot of one of these files that isn't running?
yeah that seems fine, try running it with the terminal
./launch
This is strange.
in your case it'd be ./var/home(blabla)
or just CD to that dir
and
./launch
you can right click on the folder and "Open in prompt"
to do that quickerFor what i can see in the image, you have several problems in that script:
1. It's better to start the first line, called hashbang, with:
This will allow for atomatic detection where
bash
, the shell the script is written for, to be located upon execution.
2. You use paths starting like ./
which means it will ONLY work when the script is started in the directory it expects to be started in. ./
means current dir...
So you need to change at least those, or make sure you change directory before executing the script or command that uses it.
3. Shellscripts are by convention named with a .sh
extension, this is not a requirement in Linux but more a convention, it might help...
PS: When you "double-click" any script in your file browser, Dolphin, they are not executed in the directory they are saved in, but more likely your home dir as current dir...
So yea scripts that use ./
are mostly bad/lazy coding...for #1, Fedora itself converts /usr/bin/env bash to /usr/bin/bash in Copr for all packages built
so the latter is more than fine for this distro
#1 and #3 were mere advices, so his script works in all Linux variants....
The real culprit is what i said in #2 and the PS.. 😉
My issue is they don't try to run but if I input manually things work fine. I kinda wonder if something is broken since I used the offline installer then rebased to the current version.
That is because of what i wrote in point 2 above... 👆
How do I change that?
you can right click on the folder and "Open in prompt"