79446519

Date: 2025-02-17 20:25:58
Score: 3.5
Natty:
Report link

I tried out the top answers and they did not work for me on Pop!_OS, but this did the trick:

https://stackoverflow.com/a/49426970/29685298

so (as linked response calls out change X_user and X_userid) ->

01 * * * * * sudo -u X_user DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/X_userid/bus notify-send 'Hello world!' 'This is an example notification.'

Reasons:
  • Blacklisted phrase (1): did not work
  • Blacklisted phrase (1): stackoverflow
  • No code block (0.5):
  • Low reputation (1):
Posted by: Graham Cabrey