How Do I Do "shortcuts" To Gpe Files ?


Dorian Grey

Still Fresh
Joined
Jan 23, 2006
Messages
33
Like in Windows, how can I do shortcuts with my own icons ?

It would be better to goto only 1 directory for selecting all my games and emulators and selecting the shortcuts instead of navigating around for each program.

How can this be done in Linux ?

DG.
 
make a text file and type:


Code:
#!/bin/sh

/mnt/sd/yourdir/yourprog.gpe
exec /usr/gp2x/gp2xmenu

and save where you like as myshortcut.gpe.

that should do it i think. Make sure you make the text file in linux, or use programmers notepad or something.

There is a sort of 'shortcut' feature in linux, called linking, using the ln command, but i've not got this to work on the gp2x.

Not sure about icons though!
 
I'm learning myself ... there's been a few helpful folks that gave some examples. I'll post some of mine here in a short while ...
 
mrsnature posted on Feb 16 2006 at 10:20 PM said:
make a text file and type:


Code:
#!/bin/sh

/mnt/sd/yourdir/yourprog.gpe
exec /usr/gp2x/gp2xmenu

and save where you like as myshortcut.gpe.

that should do it i think. Make sure you make the text file in linux, or use programmers notepad or something.

There is a sort of 'shortcut' feature in linux, called linking, using the ln command, but i've not got this to work on the gp2x.

Not sure about icons though!
That script won't work for a lot of stuff because most apps expect you to be in the same folder as the executable before you run it so they can find their files. You should cd to the correct folder first before running the exe with ./yourprog.gpe. You also need to cd back to /usr/gp2x before running gp2xmenu otherwise it can't find it's images (unless they've changed that in a later version). You can't use ln on the sd because ln isn't supported on fat32. For icons just place a png in the same folder as the gpe with the same name as the gpe (eg, if the shortcut is called myshortcut.gpe then it's icon should be called myshortcut.png).
 
Last edited by a moderator:
Ok, here's a few I slapped together. They first run the LCD Tweaker program, then the emulator:

DrMDx (The executable is in the DrMD folder):

Code:
#!/bin/sh

/mnt/sd/cpu_speed.gpe 1 2 200
cd /mnt/sd/DrMD/
./DrMDx.gpe
sync

cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

GP2XHandy (The executable is in the root):

Code:
#!/bin/sh

/mnt/sd/cpu_speed.gpe 1 2 266
/mnt/sd/GP2XHandy.gpe
sync

cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

TI-99/4A (From the MESS emulator, executable is 2 folders deep):

Code:
#!/bin/sh

/mnt/sd/cpu_speed.gpe 1 2 266
cd /mnt/sd/gp2xmess-0.9-beta/gp2xmess
./ti99_4a.gpe
sync

cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

Other kind folks had posted their examples, so I just altered the scripts to fit my paths ... the only emu I can't get to execute via a script is suidgesnes ... I can run if from a script from within the same folder, but not if said script is external to that folder ... very wierd.
 
also remember that you can put png files of the same name in the folder with your shell scripts so, not only can you make a folder full of shortcuts, you can give them different icons too.
 
symlinks don't work in fat/fat32, but if you get your card formatted with ext2 (and have a firmware that works with ext2) then your all set
 
Back
Top