diff --git a/electrum/gui/qml/qeapp.py b/electrum/gui/qml/qeapp.py index 05e1599c7..bdbec8700 100644 --- a/electrum/gui/qml/qeapp.py +++ b/electrum/gui/qml/qeapp.py @@ -154,8 +154,9 @@ class QEAppController(BaseCrashReporter, QObject): global notification if not notification: from plyer import notification - icon = (os.path.dirname(os.path.realpath(__file__)) - + '/../icons/electrum.png') + icon = os.path.join( + os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "icons", "electrum.png", + ) notification.notify('Electrum', message, app_icon=icon, app_name='Electrum') except ImportError: self.logger.warning('Notification: needs plyer; `sudo python3 -m pip install plyer`')