From 4da2a28184375072656a8e91e19c5914a75e7a2a Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Sat, 27 Jan 2024 19:19:41 +0000 Subject: [PATCH] Fix selection of image. Thank you roughnecks for the report. --- slixfeed/xmpp/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixfeed/xmpp/profile.py b/slixfeed/xmpp/profile.py index b2b7035..8dea8c0 100644 --- a/slixfeed/xmpp/profile.py +++ b/slixfeed/xmpp/profile.py @@ -48,7 +48,7 @@ async def set_avatar(self): if not filename and os.path.isdir('/usr/share/slixfeed/'): # filename = '/usr/share/slixfeed/image.svg' filename = glob.glob("/usr/share/slixfeed/image.*") - else: + if not filename: config_dir = os.path.dirname(__file__) config_dir = config_dir.split("/") config_dir.pop()