Bug 84589 - double entries left clicking knotes icon
Summary: double entries left clicking knotes icon
Status: RESOLVED FIXED
Alias: None
Product: knotes
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Brade
URL:
Keywords:
: 108564 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-06 19:32 UTC by cerebro84
Modified: 2005-07-05 16:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Files with two new notes (appearing as four) (642 bytes, application/x-tbz)
2004-08-23 12:41 UTC, cerebro84
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cerebro84 2004-07-06 19:32:34 UTC
Version:           3.2 (using KDE 3.2.91 (3.3 beta1), compiled sources)
Compiler:          gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
OS:                Linux (i686) release 2.6.3-7mdk

I've got a problem with knotes: when I left click knotes icon, I got every entry doubled; but if I renamed of delete one of them, also the duplicate gets renamed/deleted.
Comment 1 Michael Brade 2004-08-20 20:10:39 UTC
Hmm. What happened if you created a new note? Same thing? And do you still 
have this problem? If so, does it go away if you move your 
$KDEHOME/share/apps/knotes away temporarily, start knotes and create new 
notes?

Thanks,
  Michael
Comment 2 cerebro84 2004-08-21 19:09:14 UTC
If a create a new note, there's a single entry until I restart knotes. Then, it doubles. I've updated kdepim today and the problem is still there. I renamed apps/knotes to apps/knotes.bak, then I started knotes, wrote two notes, and restarted it. Then I got 4 notes...
Thank you

Comment 3 Michael Brade 2004-08-21 21:40:57 UTC
Not good... are you using a self-compiled kdepim? If so, can you please send 
me the console (debug) output? And maybe start KDE on a new user and see what 
happens there? How does your knotesrc look like?

To be honest I have no clue what is going on on your installation. I'm using 
KNotes daily and I have not seen this problem yet.

Thanks for your help,
Comment 4 cerebro84 2004-08-22 01:33:30 UTC
Yes, it's a self-compiled kdepim. Full app output:

[giuseppe@localhost giuseppe]$ knotes
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8242db0)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x827bf78)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x82b2fc8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x82ef598)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8325ec8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x835ca70)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x83933b8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x83c9bd0)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8400540)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8440500)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8479670)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x84afdd8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x84eba20)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8521c68)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8557ec8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x858df88)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x85c4348)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x85fa3c0)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x85ffa18)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
[giuseppe@localhost giuseppe]$ kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x83f7518)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()

(I made a new note and started it again)

[giuseppe@localhost giuseppe]$ knotes
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8243898)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x827cae8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x82b3b68)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x82f02a0)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8326b18)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x835d580)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8393da8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x83ca6e8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8400ec8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8437748)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x84783e0)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x84b14e0)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x84e7ad8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8523660)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8559910)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x858fc08)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x85c5c88)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x85fbe28)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8631f80)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8667fc8)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x866d758)
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
[giuseppe@localhost giuseppe]$ kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::writeConfig()
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()

I started KDE as new user and... knotes worked flawlessly! Odd. 

This is my knotesrc as user:

[Display]
bgcolor=255,255,0
fgcolor=0,0,0

[Editor]
font=Luxi Sans,13,-1,5,48,0,0,0,0,0
richtext=false
titlefont=Luxi Sans,13,-1,5,48,0,0,0,0,0

[General]
version=3.1

[WindowDisplay]
state=0

I couldn't find knotesrc for root.
Thank you

Comment 5 Michael Brade 2004-08-22 15:18:33 UTC
I'm sorry, I can't help you on this one unless I get more information. It 
really looks like it's a local issue on your account (which shouldn't be 
possible to happen either, of course). But I have tried your knotesrc and it 
works flawlessly, I haven't found anything obviously wrong in my code.

I have one question left: Are the duplicated notes in the menu actually 
duplicated on the desktop as well (i.e., real duplicated notes including the 
contents) or do you simply get two entries in the notes menu for each note?

Thanks for you help,
  Michael
Comment 6 cerebro84 2004-08-23 11:20:10 UTC
In the notes.ics there are 8 single entries. But I've got 15 libkcal-* in the notes/ directory.
Thank you

Comment 7 Michael Brade 2004-08-23 11:53:15 UTC
Do you have any private data in your notes.ics? If not, would you mind sending 
me your ../apps/knotes directory? If so, please remove the private stuff in 
notes.ics with, say, vim first.

Cheers, Michael
Comment 8 cerebro84 2004-08-23 12:41:13 UTC
Created attachment 7235 [details]
Files with two new notes (appearing as four)
Comment 9 Michael Brade 2004-08-28 21:42:51 UTC
Well, it works perfectly for me. But you also didn't send me the files you described? Anyway, it definitely seems to be something like a broken installation, therefore I'll close this report. Should you be able to find a way to reproduce this situation anytime after installing a new user, please let me know.

Thanks for you cooperation!

Cheers,
  Michael
Comment 10 cerebro84 2004-08-29 19:40:35 UTC
OK, thank you anyway.

Alle 21:42, sabato 28 agosto 2004, Michael Brade ha generato la seguente mutazione genetica:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> You are a voter for the bug, or are watching someone who is.
>       
> http://bugs.kde.org/show_bug.cgi?id=84589      
> brade kde org changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |RESOLVED
>          Resolution|                            |WORKSFORME
> 
> 
> 
> ------- Additional Comments From brade kde org  2004-08-28 21:42 -------
> Well, it works perfectly for me. But you also didn't send me the files you described? Anyway, it definitely seems to be something like a broken installation, therefore I'll close this report. Should you be able to find a way to reproduce this situation anytime after installing a new user, please let me know.
> 
> Thanks for you cooperation!
> 
> Cheers,
>   Michael
> 
> 

Comment 11 cerebro84 2004-12-10 16:21:08 UTC
> Should you be able to find a way to reproduce this situation anytime after installing a new user, please let me know. 

So, I've been able to reproduce the situation. I bought a laptop in which I installed Gentoo and, in order to be sure not to mess with installation, I installed kde-cvs through some unofficial gentoo ebuilds. Well, that bug it's here again. I don't know if it's persecuting just me, but it's even worst than before: now every note I make becomes 13 notes!!!! I have a very long list of notes.. with just two notes.

Step to reproduce the situation:
1) Buy an Acer Travelmate 292LMi
2) Install Gentoo Linux 2004.2
3) Download and install kde-cvs ebuilds
4) Launch knotes
5) Make a note
6) Restart knotes
7) And now... magic! You've got 13 notes!!

I hope these new informations may be useful to resolve the bug and not more confusing than before.... I really need you to resolve this issue!!! Please!
Comment 12 Michael Brade 2004-12-11 13:19:13 UTC
Bad news :-( But sadly, this is nowhere near enough information for me to do 
anything about this issue. What version of KDE are you using? What version of 
KNotes? And then, please backup and delete your ~/.kde/share/apps/knotes 
directory. If the bug is gone afterwards, I will need this directory to fix 
the bug. You may send it to me in private in this case. But let me know the 
result in any case, please.

Comment 13 cerebro84 2004-12-11 14:33:03 UTC
KDE cvs (updated at least every week, last time is today), kdepim cvs (updated 
at least once a month, last time is yesterday).

Tried to delete the knotes directory, made a new note, another one, closed 
knoted and restarted it.... 26 notes.

Comment 14 Michael Brade 2004-12-11 16:56:59 UTC
Ok, then please build KNotes and libkcal without --disable-debug and send me 
the debug output of it when you start it from konsole. Do it twice - the 
first time delete the apps/knotes directory, create a note, quit knotes. Then 
start it again without doing anything else. And then just copy the text in 
konsole and send it to me.

Thanks!

Comment 15 Michael Brade 2004-12-12 13:39:27 UTC
Hi,

On Sunday 12 December 2004 13:08, Peppe wrote:
> This is the first lauch of knotes, making and saving a new note:
[...]
Thanks heaps for the debug output, now I know what's happening! :-) Please now 
also send me your ~/.kde3.3/share/config/kresources/notes/stdrc file and 
delete it afterwards. Then it should work for you again. (The file should 
have 13 Resouce_* entries.

The problem is that in earlier versions of KNotes there was a bug in libkcal 
and its usage which made KNotes create a new Resource everytime it was 
started. This I have fixed but didn't think about the consequences. I'll look 
into this the next couple of days.

Cheers,
  Michael

PS: CCing the bugreport in case others have the same problem.
Comment 16 cerebro84 2004-12-12 13:54:00 UTC
Ok, now everything works WEEEELLLL!!! Thank you :)

> This I have fixed but didn't think about the consequences. I'll look 
> into this the next couple of days. 

OK, I'll let you close the bug so
Comment 17 Michael Brade 2005-02-20 22:40:09 UTC
Ok, deleting the file is really the only possible fix for now.
Comment 18 deloptes 2005-06-25 21:53:32 UTC
Thank you too!

I solved the problem for me following your discussion.
The problem occured when importing the notes from kde 3.1 (the format there is different). and than I had tripple notes when left-clicking on the notes icon in the system tray.

Now everything works fine!
Thank you once again

regards
Comment 19 Michael Brade 2005-07-05 16:55:05 UTC
*** Bug 108564 has been marked as a duplicate of this bug. ***