From my investigations in the qt3 version of hplip only hplip/ui/systemtray.py needs to be changed. For that I attached a patch. It would be nice if someone could test/verify that, because I don't have any HP-hardware to properly use hplip with.
The qt4 version of hplip is using showMessage, which is a method of QSysTray. There are three occurances in hplip/ui4/systemtray.py and six occurances in hplip/ui4/devmgr5.py which have to be adapted to use libnotify. As a guide for what calls to use see the icon-summary-body.py example of https://edge.launchpad.net/notify-osd (notify-osd/examples/icon-summary-body.py). Or just take a look at the attached patch for the qt3 version of hplip.
Bug https:/ /bugs.edge. launchpad. net/hplip/ +bug/354451 filed against HPLIP indicates HPLIP not using a libnotify-based notification-system correctly. Thus notifications are no passed via DBus according to the specs (https:/ /wiki.ubuntu. com/NotifyOSD, http:// www.galago- project. org/specs/ notification/ 0.9/). HPLIP needs to be patched to use libnotify.
From my investigations in the qt3 version of hplip only hplip/ui/ systemtray. py needs to be changed. For that I attached a patch. It would be nice if someone could test/verify that, because I don't have any HP-hardware to properly use hplip with.
The qt4 version of hplip is using showMessage, which is a method of QSysTray. There are three occurances in hplip/ui4/ systemtray. py and six occurances in hplip/ui4/ devmgr5. py which have to be adapted to use libnotify. As a guide for what calls to use see the icon-summary- body.py example of https:/ /edge.launchpad .net/notify- osd (notify- osd/examples/ icon-summary- body.py) . Or just take a look at the attached patch for the qt3 version of hplip.