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..."
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to