Linux Launcher assistance

General discussion about LÖVE, Lua, game development, puns, and unicorns.
bajinaji
Prole
Posts: 3
Joined: Sat Oct 29, 2016 7:20 am

Re: Linux Launcher assistance

Post 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 ... ?
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: Linux Launcher assistance

Post 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.
Last edited by pgimeno on Sat Nov 05, 2016 2:25 pm, edited 1 time in total.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Linux Launcher assistance

Post by Nixola »

You can also [wiki]love.window.close[/wiki] if you want to keep the frontend running with no window.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: Linux Launcher assistance

Post by pgimeno »

Yeah, when I tested it didn't work with minimize/requestAttention so I edited my post, but you were faster ^.^
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests