[maemo-developers] [maemo-developers] program close automatically on maemo emulator
From: Eero Tamminen eero.tamminen at movial.fiDate: Tue Aug 16 18:38:49 EEST 2005
- Previous message: [maemo-developers] Reviewed MANaOS Browser TODO list ...
- Next message: [maemo-developers] program close automatically on maemo emulator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, > Do you start the application from the application launcher? > Then carefully observe that you have sepcified the same titles in the > desktop and service files. It's enough that in the .desktop file: 1. The correct D-BUS service name is given for the application 2. The application WMClass property matches what application states in it's window properties > Hildon contains a mechnism to kill processes that do not start up properly. > So if y process is supposed to be started (launched from thelauncher) that > it has to register itself within a certain amount of time (the default is > IMHO 30 seconds). If it does not it is assumed to be stuck at init stage > and is killed. This is standard D-BUS behavior when the auto-activation flag is specified. Use of D-BUS guarantees both that: - There's only one instance of each application running, and - Message receiver is automatically invoked to handle the request if it's not already running (such as "come on top" from the TN and or "open this file" from file manager) Other differences from normal desktop: - Application icon (data) is not transmitted through X server with an application window property (as specified in the WM spec[1]). Instead the icon filename is specified in the .desktop file and TN loads it directly. - Startup notification protocol[2] is not used to handle application startup notifications. For this D-BUS daemon would need to be modified to create and pass DESKTOP_STARTUP_ID both to the launched application and client showing the startup notification. (AFAIK in Maemo libosso sends some kind of D-BUS message to TN when app is activated with one of its D-BUS wrappers) - WMClass property is used to identify which window belongs to which application as Gtk automatically sets that property to the application binary name. [1] http://www.freedesktop.org/wiki/Standards_2fwm_2dspec [2] http://www.freedesktop.org/wiki/Standards_2fstartup_2dnotification_2dspec - Eero
- Previous message: [maemo-developers] Reviewed MANaOS Browser TODO list ...
- Next message: [maemo-developers] program close automatically on maemo emulator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]