GNOME Bugzilla – Bug 605382
Notes from stickynotes do not get imported if Tomboy isn't installed
Last modified: 2011-06-27 09:21:58 UTC
We recently installed gnote. We never had Tomboy installed, but used the stickynotes-applet before. But our notes from stickynotes do not get imported. I looked a bit at the problem, and I BELIEVE I understand what is wrong. The code in StickyNoteImportNoteAddin::want_to_run in stickynoteimportnoteaddin.cpp does gconf_client_get_bool(client, TB_STICKYNOTEIMPORTER_FIRST_RUN, &error); to determine if it is to run. If "error" is set, the code assumes Tomboy wasn't installed, and this import should be done. But gconf_client_get_bool does not set error if the key does not exist. (As far as I can tell. This is where "I believe" mainly comes in.) The error is only set if the key exists but has a value of a different type than boolean. If the key does not exist, the gconf_client_get_bool simply returns a default value, which for booleans is "false". And the consequence of this is that this function also will return false, and no imports will be done.
*** Bug 608324 has been marked as a duplicate of this bug. ***
As part of porting Gnote to Gio::Settings I removed this check so Tomboy is no longer required to import sticky notes. This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.