Forgive my stupidity but I'm trying to make a script that has to been ran as root to print a notification but it won't work for some reason??
It works just fine when ran without Sudo.
If I try to run it with sudo it gives me this error?? ** (zenity:14645): WARNING **: 16:25:09.209: Error showing notification: The connection is closed
Could someone give me some insight to this issue and possible a solution?
Here is the command.
echo 'message:Finished!' | timeout 0.1 zenity --notification --listen --display=:0.0