Do not die, if the wallpaper does not exist
This commit is contained in:
parent
c6308045a4
commit
71ff5f21c3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue