problem running new panel

Nicolas Masse masse_nicolas at yahoo.fr
Mon Sep 19 20:11:14 CEST 2005


On Sun, 18 Sep 2005 17:25:44 +0200
Jasper Huijsmans <jasper at xfce.org> wrote:

> Nicolas Masse schreef:
> ...
> > 
> > I think I found the problem. In fact, this comes from the id of each plugin. It can happens that 2 or more plugin have the same id. I think it comes from the way you attribute this id:
> > (correct me if I'm wrong) for this, you are using a time func, wich must give a different number depending on the system clock. But on fast computer like mine (what?), it is possible to create 2 insatnces of a plugin in so short delay that the system time is not updated. The consequence is that you give the same id to different plugins. Perhaps it does not happen to the other launcher because of the cpu cache not being used or something like that. I' ve also tried to add more launcher, the result is that after the 4st launcher, this problem happen more often.
> > I'll try to change the way the id is atributed to see if it works.
> > 
> 
> Yeah, you're right. This should be changed. If you have a good idea, let 
> me know ;--)

The only I have is to use an integer you increment every time a plugin is added. This value must be stored at the application level and be saved when exiting to avoid problems.(or initialised with the highest + 1)
I don't know if the id is just used for determining the config file or also for something else, but if it's just for that, I think it can work.

> 
> Thanks.

;-)



More information about the Xfce4-dev mailing list