Version: (using KDE KDE 3.95.0) Installed from: Compiled From Sources Compiler: gcc version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3) Target: x86_64-linux-gnu and Thread model: posix OS: Linux When i create and install a new plasma::applet (example Tutorial 1) and open the "Add Widgets Dialog", this can't detect the new applet. I have to open it twice and then the list of applets to update correctly. Next, when i change my code (example: replace the "hello world" text by another message) and installed the applet, this modification don't see to be update correctely at least until restart kde. Take note that i have to repeat the "twice open dialog" step, previusly closed all the instances of my applet on the desktop .. of course. This are the steps to i had to follow: cmake CMakeList.txt make make install The file my-applet.desktop is moved sucessfull to $HOME/kde/share/kde4/services And the file my-applet.so is moved sucessfull to $HOME/kde/lib/kde4 In short, i have to open twice the "Widgets Dialog" to update correctly the list of applets and then i have to restart kde to see the new modifications in my applet. Greetings and thanks.
Created attachment 22114 [details] The code of the applet This are the sources of the applet.
> this can't detect the new applet. I have to open it > twice and then the list of applets to update correctly. hm. would be interesting to track the reason for this down. i wonder if it's because kbuildsycoca4 doesn't get run immediately, or if the applet dialog actually does require two reloads. > this modification don't see to be update correctely at > least until restart kde. restarting plasma is all that's needed, not all of kde. and the way c++ libraries work this will never different. i suggest for development that you try using the plasmoidviewer application.
>hm. would be interesting to track the reason for this down. i wonder if it's because kbuildsycoca4 >doesn't get run immediately, or if the applet dialog actually does require two reloads. Helo thanks for reply, if the dialog needs two reloads i think that a button "Reefresh List" would be a nice solution... (it's only a idea :P not a wish ) >restarting plasma is all that's needed, not all of kde. and the way c++ libraries work this will >never different. I don't know how restart plasma, i supose killing or refresh the proccess that appears in the ksysguard dialog ... >i suggest for development that you try using the plasmoidviewer application. Thanks for the tip , i'm using (and studying the doc :P) of plasmoidviewer Greetings 19 Nov 2007 06:21:52 -0000, Aaron J. Seigo <aseigo@kde.org>: [bugs.kde.org quoted mail]
Re-unconfirm (owner changing confirmed the bug).
Have you tried just waiting longer before opening the viewer? I think there's a minimum time delay between checks for new/updated .desktop files. To restart plasma: killall plasma; plasma or kquitapp plasma; plasma
Thanks, but i was killing plasma with ksysguard. Greetings.
What happens if you run kbuildsycoca4 before opening the "Add Widgets" window?
Same here, Ubuntu Gutsy packages
> In reply to comment 7: Install the applet and running kbuildsyscoca4 will make it show up immediately. Waiting a few minutes will help, too.
*** Bug 156873 has been marked as a duplicate of this bug. ***
UNCONFIRMED=>New Same happens btw also with "Install Widget" in trunk,even if kbuildsycoca got run. So, the treason seems to be, that the "Add Widget" list just doesn't got updated or updated at the wrong time.
SVN commit 821611 by aseigo: respond when sycoca changes. sorting goes all to hell at this point, but i don't have time right now to figure out why. at least we respond to new entries =) BUG:152530 M +8 -7 kcategorizeditemsview.cpp M +8 -2 plasmaappletitemmodel.cpp M +6 -2 plasmaappletitemmodel_p.h WebSVN link: http://websvn.kde.org/?view=rev&revision=821611