[HOWTO] Moving Gnote Notes to Tomboy and vice versa

[ad#ad-1] I had moved to Gnote from Tomboy notes in my Ubuntu 10.04 Lucid Lynx Alpha because I wanted to free some space by removing mono (I don’t play gbrainy and I do not have a photo collection in my PC :)).

However, I have been facing crashes with Gnote recently. I updated to latest version of Gnote from the PPA with no success. I get the following error when I try to launch Gnote version 0.7.1-1ppalucid3 from the terminal:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
progname=gnote; RGBA=on
(gnote:13961): GLib-GObject-WARNING **: cannot register existing type `gtkmm__GtkTextBuffer'
(gnote:13961): GLib-GObject-WARNING **: cannot register existing type `gtkmm__GtkTextBuffer'
(gnote:13961): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type `<invalid>'
(gnote:13961): GLib-GObject-CRITICAL **: g_object_class_find_property: assertion `G_IS_OBJECT_CLASS (class)' failed
(gnote:13961): glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object class "(null)" has no property named "tag_table"
(gnote:13961): GLib-GObject-CRITICAL **: g_type_class_unref: assertion `g_class != NULL' failed
(gnote:13961): GLib-GObject-CRITICAL **: g_object_newv: assertion `G_TYPE_IS_OBJECT (object_type)' failed
(gnote:13961): Gtk-CRITICAL **: gtk_text_buffer_get_tag_table: assertion `GTK_IS_TEXT_BUFFER (buffer)' failed
(gnote:13961): GLib-GObject-WARNING **: cannot register existing type `gtkmm__GtkTextBuffer'
(gnote:13961): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type `<invalid>'
(gnote:13961): GLib-GObject-CRITICAL **: g_object_class_find_property: assertion `G_IS_OBJECT_CLASS (class)' failed
(gnote:13961): glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object class "(null)" has no property named "tag_table"
(gnote:13961): GLib-GObject-CRITICAL **: g_type_class_unref: assertion `g_class != NULL' failed
(gnote:13961): GLib-GObject-CRITICAL **: g_object_newv: assertion `G_TYPE_IS_OBJECT (object_type)' failed
(gnote:13961): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(gnote:13961): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(gnote:13961): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(gnote:13961): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(gnote:13961): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(gnote:13961): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(gnote:13961): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(gnote:13961): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(gnote:13961): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(gnote:13961): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(gnote:13961): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(gnote:13961): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(gnote:13961): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(gnote:13961): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(gnote:13961): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
(gnote:13961): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
(gnote:13961): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
(gnote:13961): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(gnote:13961): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(gnote:13961): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(gnote:13961): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(gnote:13961): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(gnote:13961): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(gnote:13961): Gtk-CRITICAL **: gtk_text_buffer_get_end_iter: assertion `GTK_IS_TEXT_BUFFER (buffer)' failed
(gnote:13961): Gtk-CRITICAL **: gtk_text_buffer_get_start_iter: assertion `GTK_IS_TEXT_BUFFER (buffer)' failed
(gnote:13961): Gtk-CRITICAL **: gtk_text_buffer_delete: assertion `GTK_IS_TEXT_BUFFER (buffer)' failed
(gnote:13961): Gtk-CRITICAL **: gtk_text_buffer_get_start_iter: assertion `GTK_IS_TEXT_BUFFER (buffer)' failed
(gnote:13961): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
zsh: segmentation fault (core dumped)  gnote

The bug has been filed here but we are yet to see any improvements.

So I thought I should move back to Tomboy. I needed to get my notes that I created in Gnote back. To do that, I just had to copy the .note files from /home/MyUserName/.gnote to /home/MyUserName/.local/share/tomboy. After that, I had to quit and start Tomboy again and I can access the notes again with Tomboy.
If I had to move these back again (i.e. from Tomboy to Gnote), I could delete the .gnote altogether (so that it asks for import) or copy .note from /home/MyUserName/.local/share/tomboy to /home/MyUserName/.gnote.

Let me know when Gnote starts working again.