I have a simple Python script here:#! /usr/bin/pythonimport osos.system('notify-send Hello This is a message')When I, as a normal user, run the script in terminal as ./notification.py, a desktop notification is displayed on the screen with the contents Hello This is a message. However, when I (normal user) run sudo ./notification.py, no desktop notification is shown. I am unable to understand this behaviour and how to go about solving it or working around it.PS: OS - OpenSUSE Leap 42.1 DE - KDE Plasma v5.5.5
Why os.sytem won't show desktop notification to user?
linux;python;opensuse