![]() Registered Member ![]()
|
I'm trying to write my first plasmoid and am having varying levels of success. It's a popupapplet to display my internet usage using data from my ISP. At the moment I've cut the code right down so all I'm doing is setPopupIcon("krdc") in the constructor and I have an empty init method.
The problem is is that previous times I've been playing around with returning a QPushButton from the widget() method (which successfully displayed a button when I added to the panel) but now that I've changed it to just display an icon, it still displays the button when I add it to the panel (yes I've deleted the .so file manually, cleaned, recompiled and reinstalled many times just to make sure I was doing it right). I managed to get it to display the icon using some combination of rebooting, deleting and re-installing the plasmoid, killing plasma and running plasma-desktop and running kbuildsycoca4. Now if I change the icon to kmix, when I add the plasmoid to the panel it still displays the krdc icon. Is there some kind of caching going on and if so how do I clear it? Running Kubuntu 10.04 and KDE 4.4.2 TIA |
![]() Administrator ![]()
|
You need to restart Plasma each time you compile and install your plasmoid due to the way files are loaded.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Do you mean something like kquitapp plasma-desktop && plasma-desktop?
|
![]() Manager ![]()
|
that would do it |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]