.gnome-desktop symlink patch



Someone requested that nautilus wouldn't do the .gnome-desktop migration
if .gnome-desktop was a symlink. Sounds like a good idea to me:

Index: src/nautilus-application.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-application.c,v
retrieving revision 1.204
diff -u -p -r1.204 nautilus-application.c
--- src/nautilus-application.c	29 Aug 2003 12:03:54 -0000	1.204
+++ src/nautilus-application.c	5 Sep 2003 08:38:20 -0000
@@ -290,7 +290,8 @@ migrate_old_nautilus_files (void)
 	int fd;
 	
 	old_desktop_dir = nautilus_get_gmc_desktop_directory ();
-	if (!g_file_test (old_desktop_dir, G_FILE_TEST_IS_DIR)) {
+	if (!g_file_test (old_desktop_dir, G_FILE_TEST_IS_DIR) ||
+	    g_file_test (old_desktop_dir, G_FILE_TEST_IS_SYMLINK)) {
 		g_free (old_desktop_dir);
 		return;
 	}

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a deeply religious shark-wrestling cat burglar with a mysterious suitcase 
handcuffed to his arm. She's a vivacious kleptomaniac widow with the soul of a 
mighty warrior. They fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]