mirror of https://github.com/GNOME/gimp.git
app: check extensionrc existence before trying to parse it.
On first run, it would not exist (which is normal) which was producing an error message on stderr.
This commit is contained in:
parent
915657153f
commit
9c4860b31e
|
@ -571,18 +571,21 @@ gimp_extension_manager_initialize (GimpExtensionManager *manager)
|
|||
|
||||
file = gimp_directory_file ("extensionrc", NULL);
|
||||
|
||||
if (manager->p->gimp->be_verbose)
|
||||
g_print ("Parsing '%s'\n", gimp_file_get_utf8_name (file));
|
||||
|
||||
processed_ids = NULL;
|
||||
gimp_config_deserialize_file (GIMP_CONFIG (manager),
|
||||
file, &processed_ids, &error);
|
||||
if (error)
|
||||
if (g_file_query_exists (file, NULL))
|
||||
{
|
||||
g_printerr ("Failed to parse '%s': %s\n",
|
||||
gimp_file_get_utf8_name (file),
|
||||
error->message);
|
||||
g_error_free (error);
|
||||
if (manager->p->gimp->be_verbose)
|
||||
g_print ("Parsing '%s'\n", gimp_file_get_utf8_name (file));
|
||||
|
||||
gimp_config_deserialize_file (GIMP_CONFIG (manager),
|
||||
file, &processed_ids, &error);
|
||||
if (error)
|
||||
{
|
||||
g_printerr ("Failed to parse '%s': %s\n",
|
||||
gimp_file_get_utf8_name (file),
|
||||
error->message);
|
||||
g_error_free (error);
|
||||
}
|
||||
}
|
||||
g_object_unref (file);
|
||||
|
||||
|
|
Loading…
Reference in New Issue