[Bug 261725] activitybar widget symbols missing on startup

Chani chanika at gmail.com
Fri Dec 31 16:31:59 CET 2010


as noted in https://bugs.kde.org/show_bug.cgi?id=261725 KActivityInfo doesn't 
have any way of telling when nepomuk comes up, so if you use it before nepomuk 
starts, you don't get icons.

I see more than one way of fixing this bug, and I'm not sure which is more 
Right. and, to complicate this, I've missed Hard Api Freeze.

there are two parts: how kactivityinfo should get the information, and how it 
should expose it.

for the first part... kactivitymanagerd has a private function for asking 
whether nepomuk is initialized, but no way of listening for it. so.. I'm 
assuming for the moment that the only option is to use QDBusServiceWatcher to 
listen for all new dbus services and check if they're nepomuk. does anyone 
know of a better way?
I also wonder whether it would be more Right to put the nepomuk check in 
kactivitymmanagerd an have it emit a signal when nepomuk comes up (..or goes 
down? is there any use case for that?)

for the second part... I was thinking KActivityIcon could either have a new 
availabilityChanged signal (but not in 4.6) or just emit infoChanged() as if 
the icon had changed. then i noticed that KActivityConsumer already has a 
serviceStatusChanged signal that it's just not using. maybe it should start 
using it ;) ...but honestly, KActivityConsumer doesn't have any features that 
use nepomuk, at least not yet. it's KActivityInfo that cares.

so.. what *I* think is the best solution: have KActivityInfo watch for the 
nepomuk dbus service, and emit infoChanged when it appears.
we should also harmonize the wording in 4.7: how much stuff is working is 
referred to as both "availability" and "serviceStatus".

questions:
-would it be better to have kactivitymanagerd emit an availabliityChanged 
signal in 4.7?
-should KActivityInfo also emit an availabilityChanged signal in 4.7?
-should KActivityConsumer watch for nepomuk too, and emit 
serviceStatusChanged?
-should any of the stuff I recommended *not* be done?
-did I miss any easier ways of doing stuff?

-- 
Chani
http://chani.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20101231/9ac91690/attachment.sig 


More information about the Plasma-devel mailing list