GNOME Bugzilla – Bug 726432
Express installation fails if no avatar file is available
Last modified: 2016-03-31 13:22:07 UTC
Created attachment 272029 [details] [review] installer: Don't try to copy non-existant avatar If the user has no avatar set up and no ~/.face file exists, the current implementation still tries to copy the file, which causes the express installation to fail to be prepared. The attached patch fixes that by simply not adding the unattended file if it does not exist. Note that the patch only fixes this instance of the bug, but e.g. if ~/.face exists but is no valid image, the express installation preparation will still fail.
Review of attachment 272029 [details] [review]: good otherwise ::: src/unattended-installer.vala @@ +400,3 @@ } + if (FileUtils.test (avatar_path, FileTest.EXISTS)) { I think this is what fidecio was talking about on IRC. :) If you turn this into: if (..) return; You'll not have to change anything in the following lines and this patch would be as minimalistic as it can be and code will be a lot more readable too IMO.
Created attachment 272056 [details] [review] installer: Don't try to copy non-existant avatar early-out version of the first patch.
Review of attachment 272056 [details] [review]: ack
Attachment 272056 [details] pushed as 47d65b7 - installer: Don't try to copy non-existant avatar