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 605382 - Notes from stickynotes do not get imported if Tomboy isn't installed
Notes from stickynotes do not get imported if Tomboy isn't installed
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: main
0.6.x
Other Linux
: Normal normal
: ---
Assigned To: gnote-maint
gnote-maint
: 608324 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-12-24 17:18 UTC by Göran Uddeborg
Modified: 2011-06-27 09:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Göran Uddeborg 2009-12-24 17:18:39 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.
Comment 1 Fabio Durán Verdugo 2010-01-30 01:23:58 UTC
*** Bug 608324 has been marked as a duplicate of this bug. ***
Comment 2 Aurimas Černius 2011-06-27 09:21:58 UTC
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.