I have come to see that also the "history" and "accels" files suffer from this problem.
Please let me know what kind of fix are you applying to gqview so I can make patches for the other two problems.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
gqview_atomic_file_writing
Logged In: YES
user_id=1244604
Originator: YES
Here is the fix.
File Added: gqview_atomic_file_writing.diff
Logged In: YES
user_id=1244604
Originator: YES
Another way to fix this bug would be to write all the configuration file to a string buffer in RAM and then save it using http://library.gnome.org/devel/glib/unstable/glib-File-Utilities.html#g-file-set-contents
Tell me if you would like it better so I can make a patch.
gqview_atomic_file_writing_gstring.diff
Logged In: YES
user_id=1244604
Originator: YES
I am attaching another implementation of the fix using a GString and g_file_set_contents()
File Added: gqview_atomic_file_writing_gstring.diff
Logged In: YES
user_id=1244604
Originator: YES
I have come to see that also the "history" and "accels" files suffer from this problem.
Please let me know what kind of fix are you applying to gqview so I can make patches for the other two problems.
Logged In: YES
user_id=1244604
Originator: YES
This bug has been fixed in the Debian package:
http://packages.debian.org/sid/gqview
using one of the attached: gqview_atomic_file_writing.diff