Perhaps someone else also had this idea, but I haven't seen it yet so I'll start this thread anyway.
Currently, when a PND is found, it will be automagically added to the menu and/or the desktop. Why not add to this a wrapper script in /usr/bin/, simply a bash script with the name of the main executable, that calls pnd_run and passes the arguments. So e.g. if you have the tuxpaint PND, then /usr/bin/tuxpaint will actually run the PND for you. This would be nice when using the terminal (so I can type "mc" in a terminal to get Midnight Commander, etc.), but it would also make it much easier for PND's to use one another.
Some other directory that is in $PATH would probably be OK too, but I'd prefer /usr/bin since that is the default spot and some applications might ignore $PATH and just look there. Of course this requires the automagic script adding thing to be able to write there.
When the SD card goes away, the script could be removed with it, or it could be kept and it should check whether the PND is still there - if not, it can display some kind of message telling you to insert a SD card containing that PND.
The cleanest way to do this would probably be to add something to the PXML format so applications can specify the name of the wrapper script to be added.
What do you think?
Currently, when a PND is found, it will be automagically added to the menu and/or the desktop. Why not add to this a wrapper script in /usr/bin/, simply a bash script with the name of the main executable, that calls pnd_run and passes the arguments. So e.g. if you have the tuxpaint PND, then /usr/bin/tuxpaint will actually run the PND for you. This would be nice when using the terminal (so I can type "mc" in a terminal to get Midnight Commander, etc.), but it would also make it much easier for PND's to use one another.
Some other directory that is in $PATH would probably be OK too, but I'd prefer /usr/bin since that is the default spot and some applications might ignore $PATH and just look there. Of course this requires the automagic script adding thing to be able to write there.
When the SD card goes away, the script could be removed with it, or it could be kept and it should check whether the PND is still there - if not, it can display some kind of message telling you to insert a SD card containing that PND.
The cleanest way to do this would probably be to add something to the PXML format so applications can specify the name of the wrapper script to be added.
What do you think?