eel code freeze break request - default application



There is a bug that disallows you to set the default application for a
mimetype if the ~/.local/share/applications directory doesn't exist.

Here is the fix:
Index: eel/eel-mime-extensions.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-mime-extensions.c,v
retrieving revision 1.5
diff -u -p -r1.5 eel-mime-extensions.c
--- eel/eel-mime-extensions.c	31 Aug 2004 14:35:51 -0000	1.5
+++ eel/eel-mime-extensions.c	3 Sep 2004 12:34:09 -0000
@@ -550,6 +550,10 @@ eel_mime_set_default_application (const 
 	GError *error = NULL;
 	gboolean ret;
 
+	if (!ensure_application_dir ()) {
+		return FALSE;
+	}
+	
 	applications_dir = get_user_dir ("applications");
 	list_filename = g_build_filename (applications_dir, "defaults.list", NULL);
 

Ok to commit?

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a sword-wielding dishevelled messiah with no name. She's a chain-smoking 
extravagent snake charmer who can talk to animals. They fight crime! 




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