Back to the main site

Lutris-wrapper script doesn't respect &

The lutris-wrapper script doesn’t seem to allow the & switch which allows a shell command to create it’s own shell. Practically this means that when I use the “Post-exit command” option to launch a script, if that script launches a process that is intended to stay open, the lutris-wrapper script won’t exit until those processes close, and if you kill the lutris-wrapper script, those processes will also be killed.

I was using the post exit command to run a script that loaded default keymaps for my peripherals in a picture viewer, but I don’t want them to be child processes of the lutris-wrapper script, for what should be obvious reasons. It’s not a huge deal but it would be nice if the lutris-wrapper script would honour the creation of independent shells.

I’m assuming it’s because it’s a python script launching a bash script, which is above my pay grade. Maybe there’s a way for me to make that work.