Show: Today's Messages :: Show Polls :: Message Navigator |
A very simple launcher [message #611] | Mon, 11 December 2006 10:32 | ||||
| |||||
Well I recently gunzipped my roms, and I found it a little annoying to right click and open with mednafen in nautilus... I like to leave the default association... Anyway, very simple stuff here, just a launcher, and gave me an excuse to put a little mednafen icon on my desktop. Let's say it's GPLv2: #!/bin/bash cd ROMs ROM=$(zenity --title="Mednafen: Load a ROM" --width=600 --file-selection) mednafen "$ROM" Just open up your favorite text editor, save the file in your home folder. Make sure it has permission to be executable. Change "cd ROMs" to whatever folder you store your roms in i.e. "cd whatever" or remove the line if you drop the script in the same folder as your roms or don't care. Anyway, hope someone builds on this, it would be easy to add a "open previous rom" but haven't bothered... Screen cap: I have never let my schooling interfere with my education. -- Mark Twain | |||||
|
Re: A very simple launcher [message #1095 is a reply to message #611 ] | Wed, 09 January 2008 16:33 | |||
| ||||
If you don't mind, I made a KDE "version" so I'll post it here. It does not require zenity#!/bin/bash GAME=$(kdialog --title "Select a game or Cancel to exit" --getopenfilename $HOME) if [ -n "$GAME" ]; then mednafen "$GAME"; else exit fi change $HOME to wherever you want the open file dialog to start from by default. The if/else part came from another version of yours (I think) I saw elsewhere in the forum. | ||||
|
Previous Topic: | Possible feature request |
Next Topic: | PC-FX Comment error errata: |