![]() Registered Member ![]()
|
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. |
![]() Administrator ![]()
|
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] |
![]() Registered Member ![]()
|
Hi Ben. Thanks for replying, but using KApplication does not work either.
|
![]() Administrator ![]()
|
Unusual. Can you see your Python application on D-Bus?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
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.
|
![]() Administrator ![]()
|
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] |
![]() Registered Member ![]()
|
I see, thanks. Yes, the application is on D-Bus but the icon is still not showing in the system tray.
|
![]() Administrator ![]()
|
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] |
![]() Registered Member ![]()
|
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.
|
![]() Administrator ![]()
|
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] |
![]() Registered Member ![]()
|
Will do. Thanks for your help.
|
![]() Administrator ![]()
|
Not a problem. Once the bug is filed, please post a link to it back here.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Here's the link to the bug report: https://bugs.kde.org/show_bug.cgi?id=314595
|
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient