I’m on Nobara 42 and use the pre-installed Lutris.

I’m trying to use pre-launch and post-exit scripts with Lutris. My script looks like this: echo "pre launch" > /home/me/Documents/lutris.txt and creates the textfile when I run it manually.
I set the full path to the script in a game as a Pre-launch script and toggled Wait for pre-launch script completion to on.
The game just launches normally when I click play and the text-file is not created.

Can anyone tell me what I’m doing wrong?

@ackthxbye@feddit.org
creator
link
fedilink
29d

Yeah, both the test-script that just echos and the real script I was trying to get to run now work.

I’m guessing when I run it from the terminal I’m already in the context of bash, so the script runs, but when Lutris runs the script I don’t have this context?

Create a post

Gaming on the GNU/Linux operating system.

Recommended news sources:

Related chat:

Related Communities:

Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.

  • 0 users online
  • 1 user / day
  • 47 users / week
  • 137 users / month
  • 1.01K users / 6 months
  • 1 subscriber
  • 1.03K Posts
  • 10.6K Comments
  • Modlog