background: Don't show errors when loading default bg
Check whether the file exists so we don't get warnings when loading the default wallpaper on startup. https://bugzilla.gnome.org/show_bug.cgi?id=646056
This commit is contained in:
parent
c53d736d43
commit
d361022907
1 changed files with 3 additions and 0 deletions
|
@ -485,6 +485,9 @@ cc_background_xml_load_xml (CcBackgroundXml *xml,
|
|||
{
|
||||
g_return_val_if_fail (CC_IS_BACKGROUND_XML (xml), FALSE);
|
||||
|
||||
if (g_file_test (filename, G_FILE_TEST_IS_REGULAR) == FALSE)
|
||||
return NULL;
|
||||
|
||||
return cc_background_xml_load_xml_internal (xml, filename, FALSE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue