Hi Anthony, Try changing the Exec line to this:
Exec=xterm -e bash /usr/local/MyApp/launch.sh Let me know if that works for you. Regards Costas >-----Original Message----- >From: [email protected] [mailto:[email protected]] On >Behalf Of Anthony Wong >Sent: 07 January 2009 08:26 >To: [email protected]; Robison, Clayne B >Subject: RE: [Moblin Dev] how to add my application icon to the Ubuntu >Mobile desktop > >Hi Clayne, > >I manage to launch my Java app from the Ubuntu Mobile desktop. Due to some >path issue, I need to write a script that first cd to the appropriate >directory and then calls "java -jar MyApp.jar". > >Here is the content of my new .desktop file: >[Desktop Entry] >Name=MyApp >Type=Application >Path=/usr/local/MyApp >Exec=/usr/local/MyApp/launch.sh >Encoding=UTF-8 >Terminal=false >Icon=MyAppIcon >Categories=Application;Network >OnlyShowIn=GNOME;Mobile; > >However, the splash screen "Starting MyApp...." does not go away after my >Java app is started. I don't see that problem when starting other >applications. The comparison of my .desktop file with others shows that >the only difference is missing the "GenericName" field and "Comment" field. >I don't think that is reason for the splash screen to stay. Do you know >how to make the splash screen go away? > >Thanks, >Anthony > > >--- On Mon, 1/5/09, Anthony Wong <[email protected]> wrote: > >> From: Anthony Wong <[email protected]> >> Subject: RE: [Moblin Dev] how to add my application icon to the Ubuntu >Mobile desktop >> To: "[email protected]" <[email protected]>, "Robison, Clayne B" ><[email protected]> >> Date: Monday, January 5, 2009, 2:20 PM >> Hi Clayne, >> >> Thanks a lot for your info. I'm able to make the icon >> show up on the desktop. However, my app fails to launch. I >> think there are some path-related issue. My app is actually >> a Java app. I launch it by: >> >> $>cd /usr/local/MyApp >> $>java -jar MyApp.jar >> >> It is necessary to launch the app in the /usr/local/MyApp >> directory because it needs some libraries residing in >> /usr/local/MyApp/lib/. >> >> Here is my .desktop file: >> >> [Desktop Entry] >> Name=MyApp >> Type=Application >> Path=/usr/local/MyApp >> Exec=/usr/bin/java -jar MyApp.jar >> Encoding=UTF-8 >> Terminal=false >> Icon=MyAppIcon >> Categories=Application;Network >> OnlyShowIn=GNOME;Mobile; >> >> There is a MyAppIcon.png in /usr/share/pixmaps/. I can see >> the icon shows up on my desktop. >> >> Do you see any problem in my .desktop file? >> >> Thanks, >> Anthony >> >> >> >> >> --- On Mon, 1/5/09, Robison, Clayne B >> <[email protected]> wrote: >> >> > From: Robison, Clayne B >> <[email protected]> >> > Subject: RE: [Moblin Dev] how to add my application >> icon to the Ubuntu Mobile desktop >> > To: "[email protected]" >> <[email protected]>, "[email protected]" >> <[email protected]> >> > Date: Monday, January 5, 2009, 10:41 AM >> > You need to create a .desktop file and put it in one >> of the >> > locations listed in $XDG_DATA_DIRS. Here is more info >> on the >> > standard: >> > >> > Creating a .desktop file: >> > >> http://standards.freedesktop.org/desktop-entry-spec/latest/ >> > Moblin customizations: >> > >> >http://v1.moblin.org/toolkits/basicDevGuides/UIComp/toolkits_DevGds_UIComp_ >homeScreen.php >> > >> > >> > Notes, caveats, etc: >> > >> > 1. I haven't tested whether these standards apply >> to >> > moblin 2.0 builds. >> > 2. If your platform doesn't define XDG_DATA_DIRS, >> try >> > looking in /usr/share/applications/hildon. >> > /usr/share/applications is the default, but some OSes >> > don't do it correctly. >> > 3. If you are running Midinux, you will probably need >> to >> > add an addition line to your .desktop file: >> > >> > Submenu=x >> > >> > where x is the number corresponding to the submenu you >> wish >> > your shortcut to appear in. >> > >> > >> > Clayne >> > >> > >> > -----Original Message----- >> > From: [email protected] >> > [mailto:[email protected]] On Behalf Of >> Anthony >> > Wong >> > Sent: Wednesday, December 31, 2008 9:39 AM >> > To: [email protected] >> > Subject: [Moblin Dev] how to add my application icon >> to the >> > Ubuntu Mobile desktop >> > >> > Hi, >> > >> > I'm trying to add an icon to the Ubuntu Mobile >> desktop >> > so that I can launch my application by clicking the >> icon. >> > Can someone please show me how to do it? >> > >> > Here is the configuration of my Compal Jax10: >> > >> > Platform: menlow-lpia-ubuntu-hardy-jax10-snapshot1 >> > Fset: >> crownbeach-full-mobile-stack-with-proprietary-stuff >> > >> > >> > Thanks, >> > Anthony >> > >> > >> > >> > >> > _______________________________________________ >> > Moblin dev Mailing List >> > [email protected] >> > >> > To manage or unsubscribe from this mailing list visit: >> > https://lists.moblin.org/mailman/listinfo/dev or your >> user >> > account on http://moblin.org once logged in. >> > >> > For more information on the Moblin Developer Mailing >> lists >> > visit: >> > http://moblin.org/community/mailing-lists >> >> >> >> >> _______________________________________________ >> Moblin dev Mailing List >> [email protected] >> >> To manage or unsubscribe from this mailing list visit: >> https://lists.moblin.org/mailman/listinfo/dev or your user >> account on http://moblin.org once logged in. >> >> For more information on the Moblin Developer Mailing lists >> visit: >> http://moblin.org/community/mailing-lists > > > > >_______________________________________________ >Moblin dev Mailing List >[email protected] > >To manage or unsubscribe from this mailing list visit: >https://lists.moblin.org/mailman/listinfo/dev or your user account on >http://moblin.org once logged in. > >For more information on the Moblin Developer Mailing lists visit: >http://moblin.org/community/mailing-lists --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ Moblin dev Mailing List [email protected] To manage or unsubscribe from this mailing list visit: https://lists.moblin.org/mailman/listinfo/dev or your user account on http://moblin.org once logged in. For more information on the Moblin Developer Mailing lists visit: http://moblin.org/community/mailing-lists
