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)
|
io.close(f)
|
||||||
dofile(wallpaperrc)
|
dofile(wallpaperrc)
|
||||||
elseif beautiful.wallpaper then
|
elseif beautiful.wallpaper then
|
||||||
|
f = io.open(beautiful.wallpaper)
|
||||||
|
if f ~= nil then
|
||||||
|
io.close(f)
|
||||||
for s = 1, screen.count() do
|
for s = 1, screen.count() do
|
||||||
gears.wallpaper.maximized(beautiful.wallpaper, s, true)
|
gears.wallpaper.maximized(beautiful.wallpaper, s, true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return beautiful
|
return beautiful
|
||||||
|
|
Loading…
Reference in a new issue