From a2ff569cffed6608d0f59f9b201e9e3f805826da Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Fri, 4 Jun 2021 22:04:18 +0200 Subject: [PATCH] Fix in icon.pnmg --- pastafaristats/pastafariagent.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pastafaristats/pastafariagent.py b/pastafaristats/pastafariagent.py index e78238d..cf9e5e2 100644 --- a/pastafaristats/pastafariagent.py +++ b/pastafaristats/pastafariagent.py @@ -125,7 +125,10 @@ app = QApplication([]) app.setQuitOnLastWindowClosed(False) # Adding an icon -icon = QIcon("./icon.png") + +icon_png=os.path.realpath(os.path.dirname(__file__))+'/icon.png' + +icon = QIcon(icon_png) # Adding item on the menu bar tray = QSystemTrayIcon()