Page 2 of 2

Re: Linux Launcher assistance

Posted: Sat Nov 05, 2016 2:34 am
by bajinaji
Thanks for your help guys.

By running os.execute, and adding a ' &' to the end of the command line execution, and the executing a love.event.quit I am able to execute the emulator with the appropriate emulator command line values.

Yay.

Now, the final thing I want is when the emulator runs, to re-run the front-end so I can play my old games from the front-end I have written all day!

I assume I need to create a bash script that receives the commands I want to run, and executes the emulator instruction WITHOUT the &, and the following line reloads the frontend ... would I be on the right track ... ?

Re: Linux Launcher assistance

Posted: Sat Nov 05, 2016 2:21 pm
by pgimeno
Well, in that case you're keeping the bash script running instead of the frontend. Why not just keep the frontend running instead of the bash script? You can probably [wiki]love.window.close[/wiki]() the window before executing and then [wiki]love.window.setMode[/wiki]() to recreate the window when done.

Re: Linux Launcher assistance

Posted: Sat Nov 05, 2016 2:25 pm
by Nixola
You can also [wiki]love.window.close[/wiki] if you want to keep the frontend running with no window.

Re: Linux Launcher assistance

Posted: Sat Nov 05, 2016 2:26 pm
by pgimeno
Yeah, when I tested it didn't work with minimize/requestAttention so I edited my post, but you were faster ^.^