*** This bug is a duplicate of bug 222957 ***
    https://bugs.launchpad.net/bugs/222957

I could reproduce this bug and agree it is not a duplicate of bug
#222957 (or at least that one should be updated to reflect this issue,
because if they are related, #222957 is a specific case of this bug).

To reproduce, fill the partition your home dir is on and run Nautilus
and close Nautilus. The observed result is that the ~/.gtk-bookmarks
file is truncated to 0 bytes. The expected result is that it is left
unchanged.

What is happening here, is that somewhere probably
nautilus_bookmark_list_save_file gets called which replaces the
bookmarks file with an empty file.

http://git.gnome.org/cgit/nautilus/tree/src/nautilus-bookmark-
list.c#n503

I don't know what the real problem here is. Reading the GIO
documentation for g_file_replace suggests that it might go through some
trouble to avoid this behaviour, but I'm not sure.

http://library.gnome.org/devel/gio/unstable/GFile.html#g-file-replace

In any case, g_file_replace is called with the make_backup parameter set
to FALSE. I don't know what the reasoning behind this is, but it seems
to me that setting it to TRUE should remedy the problem. User's
bookmarks seem important enough to warrant some backup before editing I
guess.

-- 
Nautilus bookmarks deleted when computer runs out of memory
https://bugs.launchpad.net/bugs/287914
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to