diff --git a/autobeautiful.lua b/autobeautiful.lua index 3dbe5cb..abae7ee 100644 --- a/autobeautiful.lua +++ b/autobeautiful.lua @@ -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