3

I want to query the messages that were already sent with notify-send in the running session from within a script. Is that possible?

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
Cutú Chiqueño
  • 581
  • 1
  • 5
  • 16
  • I don't think you can unless you start listening to notifications (at session start-up, that is) and log them to a file. – don_crissti Jul 26 '15 at 18:46
  • What approach would enable me 'to listen' to libnotify processes? – Cutú Chiqueño Jul 26 '15 at 18:49
  • 1
    Have a look [here](http://askubuntu.com/questions/89279/listening-to-incoming-libnotify-notifications-using-dbus)... You'll have to adapt those python scripts to your needs (extract only the message text and save it to a log file) – don_crissti Jul 26 '15 at 18:56
  • 1
    @don_crissti That should be an answer. – Owen Jan 27 '20 at 02:53

0 Answers0