After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 382190 - NoteOfTheDay plugin creates one additional note each minute
NoteOfTheDay plugin creates one additional note each minute
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
unspecified
Other Linux
: Normal major
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-04 09:27 UTC by Sebastian Dröge (slomo)
Modified: 2008-02-26 20:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix the problem by looking at the date AND title (2.54 KB, patch)
2007-01-11 22:21 UTC, Boyd Timothy
committed Details | Review

Description Sebastian Dröge (slomo) 2006-12-04 09:27:07 UTC
Hi,
tomboy 0.5.1 on mono 1.2.1 creates one new note each minute if the NoteOfTheDay plugin is enabled. This easily results in many 100 useless notes and makes tomboy nearly unusable.

Ubuntu Bug: https://launchpad.net/distros/ubuntu/+source/tomboy/+bug/74181

Bye
Comment 1 Boyd Timothy 2006-12-04 20:33:37 UTC
Does this happen only when using de_DE as the language or is it happening in en_US as well?  I'm wondering if this is a similar problem to Bug #375072.
Comment 2 Sebastian Dröge (slomo) 2006-12-04 21:12:13 UTC
Seems to be caused by the locale... it seems tomboy is comparing the title of the note which contains the time for de_DE and if no note for the current "time" exists already a new one is created... i.e. one each minute for locales with time in the format, one each day for others.

Wouldn't it be better to have some kind of created-timestamp in the notes or something instead of relying on translations?
Comment 3 Sebastian Dröge (slomo) 2007-01-08 08:34:32 UTC
Is there any progress on this?
Comment 4 Boyd Timothy 2007-01-08 14:43:08 UTC
I haven't spent the time to look into this yet.  Has anyone else?
Comment 5 Boyd Timothy 2007-01-11 22:21:09 UTC
Created attachment 80085 [details] [review]
Patch to fix the problem by looking at the date AND title

I just committed this to SVN.  Please test this out and let us know if it resolves the problem for you.
Comment 6 Sebastian Dröge (slomo) 2007-01-11 22:34:52 UTC
Works fine it seems... good work, thanks :)
Comment 7 Boyd Timothy 2007-01-11 22:43:30 UTC
Thanks for checking so quickly!
Comment 8 Sebastian Dröge (slomo) 2007-01-12 07:54:25 UTC
I don't get a new note on the next day after applying this patch :/
Comment 9 Boyd Timothy 2007-01-12 15:20:26 UTC
Did you leave Tomboy running or have you restarted Tomboy since?
Comment 10 Sebastian Dröge (slomo) 2007-01-12 17:51:45 UTC
I left it running
Comment 11 Boyd Timothy 2007-01-17 00:07:20 UTC
Hmm.  I just tried to duplicate this on one of my machines running in a VM using latest SVN.  I set the time to 23:58 and let the time roll over.  After a minute or so, it had created a new note for the new day.

I started Tomboy like this:

    LANG=de_DE tomboy

I tried rollover both when editing the current NotD and when leaving the current NotD alone (so it'd delete the old NotD automatically).

Double-check that you're using the latest SVN (I'm sure you are).  Otherwise, we need to instrument the code in the NotD plugin to give us more clues as to what's happening specifically on your machine.
Comment 12 Boyd Timothy 2007-01-19 23:07:26 UTC
We've tried to reproduce this with the latest patch and have been unsuccessful.  Everything appears to be working correctly.  Please re-open it with additional details if hit the problem again in 0.5.4.
Comment 13 Sebastian Dröge (slomo) 2007-01-22 18:09:24 UTC
Hmm works fine now for some reason... so let's leave this closed ;)