Index: gnome-about-me.c
===================================================================
--- gnome-about-me.c	(revision 7515)
+++ gnome-about-me.c	(working copy)
@@ -515,10 +515,11 @@
 
 		/* Save the image for GDM */
 		/* FIXME: I would have to read the default used by the gdmgreeter program */
-		file = g_strdup_printf ("%s/.face", g_get_home_dir ());
-		fp = fopen (file, "wb");
-		fwrite (photo->data.inlined.data, 1, photo->data.inlined.length, fp);
-		fclose (fp);
+		file = g_build_filename (g_get_home_dir (), ".face", NULL);
+		g_unlink (file);
+		g_file_set_contents (file, photo->data.inlined.data,
+				     photo->data.inlined.length, NULL);
+		g_chmod (file, 0755);
 
 		g_free (file);	
 
