Re: [maemo-developers] desktop integration

2006-05-09 Thread Tomas Frydrych
Danny,

been there and this works for me:

Application Desktop file

* The X-Osso-Service line must not contain a fully qualified name,
you want something like

   X-Osso-Service=myapp

* Must include at least one of the Exec or StartupWMClass lines,
otherwise there will be no icon in the Task Navigator panel for your
application.

Application Service file

* Call your service com.nokia.myapp where myapp is whatever you put
into the X-Osso-Service line in the desktop file:
   Name=com.nokia.myapp

Tomas

Danny Milosavljevic wrote:
> Hi,
> 
> Oookay...
> 
> I just spent four hours trying to find out how 
> to integrate an application into the maemo
> environment.
> 
> Now that was unneccesary and I'm giving up 
> for now, hoping for help.
> 
> I ported a nice little program to maemo
> (see http://www.scratchpost.org/nokia-770/packages/ ),
> and it worked fine, when started from xterm.
> 
> When I tried to start by using the application 
> menu, however, my osso_initialize call  
> failed.
> 
> By now I tried every single one of the ~ 43000 (j/k)
> combinations that could be valid in the
> - desktop file
> - service file content
> - service file name
> - osso_initialize call name
> - osso_initialize call version
> - osso_initialize call activation
> 
> And it just doesn't work.
> 
> For now I commented out the osso parts and now it 
> can be launched from the menu. :)
> 
> However, stangely enough, now the application icon 
> of the menu entry is gone. It was there before I
> commented out the service stuff. I didn't comment 
> out "Icon=", it's still there.
> 
> Helppp :)
> 
> And before I don't forget, a few nitpickings about the
> tutorial:
> 
> -
> On
> http://www.maemo.org/platform/docs/tutorials/Maemo_tutorial.html#LibOSSO-library
>   there is no mention how the include file needed
>   for libosso is called (until wy down).
> 
> - the osso_initialize example uses a partial 
>   dbus service name only, and isn't the 
>   third parameter deprecated by now?
> 
> - I sure hope the weird voodoo done by 
>   osso_initialize (magically prefixing
>   "com.nokia.") is already gone? If not, it's 
>   not mentioned. 
> 
> - And the example doesn't use "com.nokia", 
>   but "org.maemo". Which would make it break in 
>   mysterious ways.
> 
> - the valid chars in the dbus service name are not
>   mentioned (and there is no NO DASHES warning)
> 
> - "Icon – Name of icon that represents this application" 
>   (in tutorial) says:
>   "Format of the file should be PNG and the prefix (.png) 
>   should not be defined."
> 
>   That is probably a suffix, and my voodoo detector goes 
>   off again.
>   Don't ever do that. The file is called how it is called,
>   no adding/removing stuff to *cough* "simplify" it please.
> 
> Phiew... now I need sleep. Good night :)
> 
> cheers,
>   Danny
> 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] desktop integration (resend)

2006-05-07 Thread Kalle Vahlman

On 5/7/06, Danny Milosavljevic <[EMAIL PROTECTED]> wrote:


Hi,

Oookay...

I just spent four hours trying to find out how
to integrate an application into the maemo
environment.


This is a very popular problem it seems. It's pretty sad to be so as
the actual procedure is not that complex really, but there are few
things that are obviously not clear enough (or even wrong) in the
documentation...


By now I tried every single one of the ~ 43000 (j/k)
combinations that could be valid in the
- desktop file


The icon name should not have the .png suffix (as it is loaded from
the icon theme).
Otherwise ok, I just uncommented the service.


- service file content


This was ok, I uncommented the installation from debian/rules.


- service file name


This does not matter.


- osso_initialize call name


This is essential and should match the part after the "com.nokia." prefix.
Libosso trunk seems to be fixed, but this happened just recently.


- osso_initialize call version


This has no effect on anything really.


- osso_initialize call activation


This is not used at all.

I uncommented the main.c osso_initialize call...


And it just doesn't work.


And it just worked.


Helppp :)


I can just urge to try it again at this point :)

--
Kalle Vahlman, [EMAIL PROTECTED]
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers