Review Request: Expose KStatusNotifierItem menus on DBus

Aurélien Gâteau agateau at
Fri Apr 23 17:15:07 BST 2010

This is an automatically generated e-mail. To reply, visit:

Review request for kdelibs and Plasma.


This patch makes KStatusNotifierItem expose its menu on DBus, making it possible for the StatusNotifierItem visualization to control the rendering of the menu. It adds a dependency on dbusmenu-qt, which can be found here:

For now icon names are not exposed because it needs QIcon::name(). This method should be in Qt 4.7, but was not included in the beta.


  trunk/KDE/kdelibs/CMakeLists.txt 1115427 
  trunk/KDE/kdelibs/cmake/modules/CMakeLists.txt 1115427 
  trunk/KDE/kdelibs/cmake/modules/FindDBusMenuQt.cmake PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/CMakeLists.txt 1115427 
  trunk/KDE/kdelibs/kdeui/notifications/kstatusnotifieritem.cpp 1115427 
  trunk/KDE/kdelibs/kdeui/notifications/kstatusnotifieritemdbus_p.h 1115427 
  trunk/KDE/kdelibs/kdeui/notifications/kstatusnotifieritemdbus_p.cpp 1115427 
  trunk/KDE/kdelibs/kdeui/notifications/kstatusnotifieritemprivate_p.h 1115427 
  trunk/KDE/kdelibs/kdeui/notifications/org.ayatana.dbusmenu.xml PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/notifications/org.kde.StatusNotifierItem.xml 1115427 



After applying the patch you should be able to list the menu of a KSNI-enabled application from DBus. This can be checked with this command:

dbus-send --print-reply --dest=org.kde.StatusNotifierItem-$PID-$N /MenuBar org.ayatana.dbusmenu.GetChildren int32:0 array:string:



Plasma-devel mailing list
Plasma-devel at

More information about the kde-core-devel mailing list