Skip to content

Commit

Permalink
Fix listing of wallpapers dir
Browse files Browse the repository at this point in the history
os.listdir also requires an expanded path...
  • Loading branch information
hamsolodev authored and ramnes committed Aug 19, 2019
1 parent 18a4e15 commit 2dfe180
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libqtile/widget/wallpaper.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def get_wallpapers(self):
self.images = list(
filter(os.path.isfile,
map(self.get_path,
os.listdir(self.directory))))
os.listdir(
os.path.expanduser(self.directory)))))
except IOError as e:
logger.exception("I/O error(%s): %s", e.errno, e.strerror)

Expand Down

0 comments on commit 2dfe180

Please sign in to comment.