Bug 152530 - "Add Widgets" dialog doesn't display newly installed widgets
Summary: "Add Widgets" dialog doesn't display newly installed widgets
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget explorer (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 156873 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-19 07:08 UTC by Percy Camilo Triveño Aucahuasi
Modified: 2008-06-18 01:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The code of the applet (33.41 KB, application/x-zip)
2007-11-19 07:16 UTC, Percy Camilo Triveño Aucahuasi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Percy Camilo Triveño Aucahuasi 2007-11-19 07:08:21 UTC
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.
Comment 1 Percy Camilo Triveño Aucahuasi 2007-11-19 07:16:23 UTC
Created attachment 22114 [details]
The code of the applet

This are the sources of the applet.
Comment 2 Aaron J. Seigo 2007-11-19 07:21:48 UTC
> 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.
Comment 3 Percy Camilo Triveño Aucahuasi 2007-11-19 23:30:10 UTC
>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]
Comment 4 Pino Toscano 2007-12-05 11:10:40 UTC
Re-unconfirm (owner changing confirmed the bug).
Comment 5 Alex Merry 2007-12-16 13:22:09 UTC
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
Comment 6 Percy Camilo Triveño Aucahuasi 2007-12-17 05:51:19 UTC
Thanks, but i was killing plasma with ksysguard.

Greetings.
Comment 7 Alex Merry 2008-01-05 22:30:13 UTC
What happens if you run kbuildsycoca4 before opening the "Add Widgets" window?
Comment 8 copong 2008-01-14 17:53:11 UTC
Same here, Ubuntu Gutsy packages
Comment 9 Bernd Steinhauser 2008-01-30 18:57:10 UTC
> In reply to comment 7:
Install the applet and running kbuildsyscoca4 will make it show up immediately.

Waiting a few minutes will help, too.
Comment 10 Sebastian Sauer 2008-01-30 20:04:48 UTC
*** Bug 156873 has been marked as a duplicate of this bug. ***
Comment 11 Sebastian Sauer 2008-03-10 01:52:50 UTC
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.
Comment 12 Aaron J. Seigo 2008-06-18 01:34:02 UTC
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