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

Reply via email to