[maemo-developers] [maemo-developers] osso_initialize()
From: Kimmo Hämäläinen kimmo.hamalainen at nokia.comDate: Fri Feb 3 11:02:53 EET 2006
- Previous message: [maemo-developers] osso_initialize()
- Next message: [maemo-developers] osso_initialize()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 2006-02-02 at 22:16, ext Tomi Ollila wrote: > Ilkka Poutanen <ilkka.poutanen at tut.fi> writes: > > > On Thu, Feb 02, 2006 at 03:56:05PM +0000, Tomas Frydrych wrote: > >> Ilkka Poutanen wrote: > > >> Can you start your application from the desktop menus? From what you are > >> saying I have done exactly the same, but without success (there are > >> other ways to start the app that work, like from xterm or in SB using > >> run-standalone.sh, or by removing the X-Ossso-Service line from the > >> desktop file). > > > > Yes, the application starts from the menu too. This is what the files > > contain: > > > > APPNAME.desktop: > > > > [Desktop Entry] > > Encoding=UTF-8 > > Version=1.0 > > Type=Application > > Name=APPNAME > > Exec=/var/lib/install/usr/bin/APPNAME > > Icon=qgn_grid_gene_default_app > > X-Window-Icon=maemopad-window > > X-Window-Icon-Dimmed=maemopad-window-dimmed > > X-Osso-Service=fi.tut.cs.APPNAME > > X-Osso-Type=application/x-executable > > > > fi.tut.cs.APPNAME.service: > > > > [D-BUS Service] > > Name=fi.tut.cs.APPNAME > > Exec=/var/lib/install/usr/bin/APPNAME > > > > APPNAME is naturally always the same... yes, even the "Name" field of > > the desktop file matches the binary name. Hope this helps! > > Thanks for everyone for help... but still I can not get the launched > program survive longer than say 30 seconds. I've tried almost everything; > rebooting the device every now and then (I did not test with X-Window-Icon > and X-Window-Icon-Dimmed if that makes any difference). If the program is killed after 30 seconds, then it's probably the DBus daemon that is killing it because it did not register with the same service name as it says in the .service file. So, .service file should have "com.nokia.appname" and you give "appname" as the application name parameter to osso_initialize(). I know, it's stupid to have compulsory "com.nokia" prefixed there, but we can fix that in the OS2006 release (volunteers to code it? :)). BR, Kimmo > > I quess I wont try with osso_initialize() for a while but state that > on a web page and just fix that fork() thing to proper one... > (removing X-Osso-service might work too, but this fork() trick gives > me tolerably working solution for sure) > > ... after there is authorative, solid and robust information of how these > D-BUS and osso_initialize() (and so on) things are to be used I'll > reconsider, just now it just takes too much time to be wasted. > > > > Tomi > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://maemo.org/mailman/listinfo/maemo-developers
- Previous message: [maemo-developers] osso_initialize()
- Next message: [maemo-developers] osso_initialize()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]