[PATCH] Fix for '#90461: can't launch "Directory" type launcher'



The attached patch fixes #90461 by adding a simple additional strcmp
call. Works for me.

regs,
 Chris
Index: libnautilus-private/nautilus-link-desktop-file.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-link-desktop-file.c,v
retrieving revision 1.28
diff -u -r1.28 nautilus-link-desktop-file.c
--- libnautilus-private/nautilus-link-desktop-file.c	5 Nov 2003 16:19:52 -0000	1.28
+++ libnautilus-private/nautilus-link-desktop-file.c	5 Apr 2004 11:48:42 -0000
@@ -317,7 +317,7 @@
 		
 		launch_string = gnome_desktop_item_get_location (desktop_file);
 		retval = g_strconcat (NAUTILUS_DESKTOP_COMMAND_SPECIFIER, launch_string, NULL);
-	} else if (strcmp (type, "URL") == 0) {
+	} else if (strcmp (type, "URL") == 0 || strcmp (type, "Directory") == 0) {
 		/* Some old broken desktop files use this nonstandard feature, we need handle it though */
 		retval = g_strdup (gnome_desktop_item_get_string (desktop_file, "Exec"));
 	} else if ((strcmp (type, NAUTILUS_LINK_GENERIC_TAG) == 0) ||


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