This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KStatusNotifierItem not working in newer versions of KDE 4

Tags: None
(comma "," separated)
lpugoy
Registered Member
Posts
7
Karma
0
hello. i have an applet that uses KStatusNotifierItem of PyKDE4. in arch linux with versions as such (Qt - 4.8.4, KDE Development Platform - 4.9.5) taken from kde4-config -v, it works.

however, in kubuntu 12.10 with versions (Qt - 4.8.3, KDE Development Platform - 4.9.98), it's not working. could anyone point me to how i can debug it?

here's an example of the code: http://pastebin.com/Ayc9MZYh.

thanks.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Instead of instantiating a global QApplication, have you tried using KApplication instead?
It is possible that KStatusNotifierItem has become dependent on having an instance of KApplication around in order to function (likely as it uses the already established D-Bus connection).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
lpugoy
Registered Member
Posts
7
Karma
0
Hi Ben. Thanks for replying, but using KApplication does not work either.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unusual. Can you see your Python application on D-Bus?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
lpugoy
Registered Member
Posts
7
Karma
0
I'm sorry, I don't know how to confirm that. If you could point me to a website that can instruct me how to do it that would be great.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
In a terminal, run "qdbus" to get a list of applications currently connected to D-Bus. I would suggest storing this list somewhere.
Then start your Python application, and run "qdbus" again. Then compare the lists.

You could also try looking for "org.kde.StatusNotifierItem-2070-1" where 2070 is the PID of the application in this case (so replace it with the PID of the Python process).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
lpugoy
Registered Member
Posts
7
Karma
0
I see, thanks. Yes, the application is on D-Bus but the icon is still not showing in the system tray.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please check to see if Plasma has automatically hidden your application?
It will be in the hidden icons area if this is the case (which can be expanded up).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
lpugoy
Registered Member
Posts
7
Karma
0
No, it is not there. The only icons there are for Notifications, Instant Messaging Presence, Desktop Search File Indexing, Battery Monitor, and Device Notifier. It is also not in the Entries section of the System Tray Settings.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Highly unusual. Given that the entry is present on D-Bus it would appear that a bug either in the Python side (not sending the proper registration event) or in the C++ side (not accepting the registration) is preventing this from working.

Please file a bug report at bugs.kde.org concerning this.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
lpugoy
Registered Member
Posts
7
Karma
0
Will do. Thanks for your help.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Not a problem. Once the bug is filed, please post a link to it back here.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
lpugoy
Registered Member
Posts
7
Karma
0


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient