This is a development related question and cross posted (for reference). I am using following code for showing notification,
import subprocess as s import os img = os.path.abspath('icon.svg') s.Popen(["notify-send", "-i", img, "Title", "some text"])
In elementary os, this is working with the exception of icon. No icon is being shown. In Ubuntu 16.04, however, everything is working as expected (including icon).
Since no warning/error is shown, I am not sure what needs to be done. The developer page for showing notification in Elementary shows usage with vala (especially this line of code
var image = new Gtk.Image.from_icon_name ("dialog-warning", Gtk.IconSize.DIALOG)) but I intend to stick with python (additionally, I don't understand vala as of now).