[maemo-developers] [maemo-developers] use shell script to start application

From: Henry Tang henryykt at gmail.com
Date: Fri Jan 20 14:58:54 EET 2006
Just a wild guess. Did you change the .service file to reference the shell
script too?

On 1/20/06, Johannes Eickhold <jeickhold at gmx.de> wrote:
>
> On Wed, 2006-01-18 at 15:18 +0100, Johannes Eickhold wrote:
> > I have hildonized gpsdrive a bit and want it to appear in the task
> > navigator after startup.
> >
> > For the following PWD=/var/lib/install.
> >
> > gpsdrive has to be started via the script "usr/bin/gpsdrive.sh".
> >
> > If I specify this file in the .desktop file, gpsdrive can be started in
> > the correct way from the menu and via "run-standalone.sh
> > usr/bin/gpsdrive.sh" but doesn't show up in the task navigator.
> >
> > If I specify ".../usr/bingpsdrive" (the binary executable) in
> > the .desktop file, only the application is startet broken (needed parts
> > from the script are not executed) BUT it shows up in the task navigator
> > after that. If I start it via run-standalone.sh everyting is fine (e.g.
> > correct startup AND showing in task navigator).
> >
> > How can I fix this?
>
> Since nobody answerd my question yet I'm going to share my thoughts with
> you I had in the meantime.
>
> First a thx to Florian Boor for pointing me to
>
> http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#Automatic-connectionwhich seems to descibe what I want to achieve. It says: "... This
> my_application.sh is then started from the desktop file where the runnable
> binary is normally specified. Read more about desktop files from this
> earlier chapter. ..." That leads to the question HOW to start the _script_
> if Exec specifies the _binary_ ("gpsdrive.sh" vs. "gpsdrive")? That's not
> described in the referenced section.
>
> Every time I specified the binary in Exec, only the binary was started.
> Result: icon in task navigator but no script execution. Every time I
> specified the script in Exec, only the script was executed. Result: no
> icon in task navigator.
>
> I tried this inside scratchbox and on the real device. After each change
> to the desktop file maemo had to be restarted what I did.
>
> So far the only possible solution seems to be to move the work done by
> the script into the binary which in my opinion is ugly.
>
> I realy would like to get enlightened!
>
> Thanks, Jonek.
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20060120/b3e8f0f4/attachment.htm 
More information about the maemo-developers mailing list