Do not die, if the wallpaper does not exist
This commit is contained in:
		
							parent
							
								
									c6308045a4
								
							
						
					
					
						commit
						71ff5f21c3
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 crater2150
						crater2150