[maemo-developers] osso, muali , dbus and Qt closeEvent()s
From: David Greaves david at dgreaves.comDate: Mon Mar 23 15:44:03 EET 2009
- Previous message: Maemo Official Applications Bug Jar 2009.12
- Next message: osso, muali , dbus and Qt closeEvent()s
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Crossposting as I think this is a maemo-dev question of interest to Qt devs :) I am having a problem with my Qt applications and the osso window manager. Essentially the window manager is doing a sigkill which doesn't allow Qt to emit a closeEvent(). A gtk app calls osso_initialize() which amongst other things registers a service name to the DBus.freedestop.org service. I've been through osso-init.c and osso-rpc.c to try and figure it out but, whilst I've made progress, I've not finished. So far I have: * added an entry into the desktop file for X-Osso-Service=com.dgreaves.shopper * created : /usr/share/dbus-1/services/com.dgreaves.shopper.service * added a QDBusConnection::sessionBus().interface()->registerService (name, 1 ); and connect(iface, SIGNAL(serviceOwnerChanged(QString,QString,QString)), this, SLOT(serviceOwnerChanged(QString,QString,QString))); dbus-monitor is showing very similar messages for gtk and my Qt apps now. I've hooked serviceOwnerChanged and try to send out a ReleaseName to org.freedesktop.DBus. However I'm still getting killed. Digging into libosso and libossowm/osso-rpc.c I find #define HILDON_DESKTOP_SERVICE "com.nokia.hildon-desktop" #define HDWM_STARTUP_NOTIFICATION_IFACE "com.nokia.hildon.hdwm.startupnotification" #define HDWM_OBJECT_PATH "/com/nokia/hildon/hdwm" #define HDWM_STARTUP_NOTIFICATION_STARTING "starting" This failed as Name:org.freedesktop.DBus.Error.UnknownMethod Message:Method "starting" with signature "" on interface "com.nokia.hildon.hdwm.startupnotification" doesn't exist I installed qdbusmonitor and "com.nokia.hildon-desktop" doesn't provide hdwm.startupnotification or starting Nor do I see it on the dbus-monitor --session when my gtk app runs. Any pointers? David -- "Don't worry, you'll be fine; I saw it work in a cartoon once..."
- Previous message: Maemo Official Applications Bug Jar 2009.12
- Next message: osso, muali , dbus and Qt closeEvent()s
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]