Re: eel code freeze break request - default application



fre, 03,.09.2004 kl. 14.36 +0200, skrev Alexander Larsson:
> 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?
> 
Seems simple enough

1/2

Cheers
Kjartan




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