(2013-12-25, 22:39)bs0d Wrote: Thanks Rob. What extension does this script use? Can I write it in Notepad, and save as --> .xxx file? Where should it be saved? And finally, how do I tell RCB to run this script before calling mednafen and subsequent %ROM%? Or does any of the input to RCB even change? Regarding openbox, I have the XBMCBuntu package. When I login, I can select openbox to login to. Is this the same openbox, or do I need to install an XBMC software app?
first, i can tell you're coming from the windows world.
extensions are not really necessary in a linux environment; yo ucan name this whatever yo want. i call mine 'mednafen-launcher' you will need to run 'chmod a+x filename' on it, to tell the operating system it is an executable file for all users on the system.
you can create it with any text editor; i use leafpad. however, you will run into problems if you create it in windows and copy it over. windows and unix define the end of a line differently so it'll just be easier to make it in linux.
as for where, linux convention would probably be /usr/local/bin; however i jus keep mine in a directory called ~/Launchers
as for how to tell RCB to run this, when it asks path to emulator, instead of telling it where mednafen's program file is, point it to this, and pass it the rom as an argument.
openbox is a component of the operating system; what you are referring to is the openbox desktop session that is built around this and a slew off other programs. this is more of an environment than you need for xvmc. what we are doing is running the one specific part of that environment that you need to manage multiple programs, control, and focus only while we have more than one program running.
see, the linux environment and operating system is very component based. it's a set of building blocks. one program may add the ability to manage bluetooth devices, one is the sound system, one adds backwards compatibility for an older set of sound drivers, one manages what programs are running, one adds a task bar, one adds a program launch/start button, one puts the clock i nthe corner of the screen, etc.
with XBMCbuntu in the XBMC mode, you are running just enough pieces to accomplish that one task; running XBMC. what this script does is temporarily run the one piece you need to manage two applications running and playing well together at the same time until you drop back down to XBMC, then leave things as it found it.