Unable to Run Scripts

I'm unable run non steam launcher or Severed Chains scripts they open as text files.
14 Replies
Kyle Gospo
Kyle Gospo10mo ago
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
14 Aeryn | AC:15 PP:14
Still unable to launch. I'll follow your recommendation about NSL and Lutris.
Kyle Gospo
Kyle Gospo10mo ago
Can you take a screenshot of one of these files that isn't running?
Kyle Gospo
Kyle Gospo10mo ago
yeah that seems fine, try running it with the terminal ./launch
14 Aeryn | AC:15 PP:14
This is strange.
No description
Kyle Gospo
Kyle Gospo10mo ago
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 quicker
©TriMoon™
©TriMoon™10mo ago
For 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:
#!/usr/bin/env bash
#!/usr/bin/env bash
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...
Kyle Gospo
Kyle Gospo10mo ago
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
©TriMoon™
©TriMoon™10mo ago
#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.. 😉
14 Aeryn | AC:15 PP:14
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.
©TriMoon™
©TriMoon™10mo ago
That is because of what i wrote in point 2 above... 👆
14 Aeryn | AC:15 PP:14
How do I change that?
HikariKnight
HikariKnight10mo ago
you can right click on the folder and "Open in prompt"
Want results from more Discord servers?
Add your server