[SHR] Launching applications

Al Johnson openmoko at mazikeen.demon.co.uk
Mon Mar 16 20:03:33 CET 2009


On Monday 16 March 2009, Joseph Reeves wrote:
> As per the recent gvSIG Mobile thread:
>
> http://lists.openmoko.org/nabble.html#nabble-td2486265|a2486543
>
> Why does SHR fail to find the application gvsig when the file exists
> as: /usr/bin/gvsig ?
>
> The application can be run with:
>
> jamvm -Xmx40M -cp
> /usr/share/java/swt.jar:/usr/share/gv-om/class/all.jar
> es/prodevelop/gvsig/mobile/app/Launcher fr /usr/share/gv-om
> /media/card
>
> but this doesn't work if executed from the script /usr/bin/gvsig - why is
> this?
>
> What do I need to do to allow execution by pressing the icon in SHR?

The problem isn't that command, but the shell you're specifying at the start 
of the script. Change from #!/bin/bash to #!/bin/sh and it works just fine.





More information about the community mailing list