David, your solution of adding an alternate .desktop works fine.
There are only 2 minor drawbacks:
- you have now an additional icon in gpmenu2x
- I need to pass additionnal parameters to fbasdl.dge and unfortunately opkrun does not support %s modifiers to pass params (enforces %f %F %u and %U for filenames or urls). It means I have to hardcode them in the .desktop.
For example for neogeo I want vsync, so the .desktop becomes: Exec=fbasdl.dge %f --vsync
But other platforms supported by fba requires other flags.
If it's possible to hide the icon in gpmenu2x maybe that's an acceptable solution to have several .desktop files. At least it's a better solution than flashing the gcw just to update opkrun!!!
Just as as side note the patch for opkrun (https://github.com/gcwnow/libopk/blob/master/opkrun.c
) would be easy to make.
Edit: I will have the same problem with mednafen which requires custom flags and that's a pity to hardcode them in the .desktop while we can just use emulationstation es_systems.cfg config file to pass custom flags.