Do not die, if the wallpaper does not exist

This commit is contained in:
crater2150 2016-07-26 14:47:46 +02:00
parent c6308045a4
commit 71ff5f21c3

View file

@ -10,9 +10,13 @@ if f~=nil then
io.close(f)
dofile(wallpaperrc)
elseif beautiful.wallpaper then
f = io.open(beautiful.wallpaper)
if f ~= nil then
io.close(f)
for s = 1, screen.count() do
gears.wallpaper.maximized(beautiful.wallpaper, s, true)
end
end
end
return beautiful