From 71ff5f21c36fe1887e6c2bdd5ff1a640aaab3cea Mon Sep 17 00:00:00 2001 From: crater2150 <crater@qwertyuiop.de> Date: Tue, 26 Jul 2016 14:47:46 +0200 Subject: [PATCH] Do not die, if the wallpaper does not exist --- autobeautiful.lua | 4 ++++ 1 file changed, 4 insertions(+) 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