[maemo-developers] top_application ???

From: Kimmo Hämäläinen kimmo.hamalainen at nokia.com
Date: Mon Jul 28 15:55:53 EEST 2008
On Sat, 2008-07-26 at 19:39 +0400, ext Andrew Zabolotny wrote:
> Hello!
> 
> I'm adapting an application for the Maemo platform, and got some
> problems.
> 
> The .desktop file of the application contains the following lines:
> 
> X-Osso-Type=application/x-executable
> X-Osso-Service=org.maemo.myapp
> 
> Also I put a /usr/share/dbus-1/services/myapp.service file which
> contains:
> 
> [D-BUS Service]
> Name=org.maemo.myapp
> Exec=/usr/bin/myapp
> 
> Now, when I start my application from the menu, first a small popup
> window saying "MyApp - starting" appears, and after a few seconds a new
> popup appears saying "top_application". I found this is most likely to

Does your application start in this case?  What arguments you use when
calling osso_initialize()?

> come from libhildonwm, but I don't quite understand what it means and
> how I can avoid it. When I start the app from command line, it works
> fine.
> 
> Another problem is with the file manager. I would like to have my app
> associated with certain MIME types and have it launched automatically
> when I double click on a file in file manager. For this I have added a
> line to the desktop file, something like this:
> 
> MimeType=application/x-something;application/x-somethingelse;
> 
> I do update-desktop-database in my postinstall script, so
> that /usr/share/applications/mimeinfo.cache gets updated (and it indeed
> contains references to my application).
> 
> However, I still can't get file manager to launch my app when I click
> on these files, and they show a blank icon. Is there some possibility
> to show a custom icon for these file types?

You need to install and configure icon for those, see:
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-
latest.html
(Looking at sources of some icon package probably helps.)

> Also I've read somewhere that filemanager has an API over the D-BUS...
> is it documented somewhere?

I think it's not a public API. The only thing in the API is opening of a
folder in File Manager over D-Bus.

BR, Kimmo

> 
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

More information about the maemo-developers mailing list