Você pode filtrar isso no nível d-bus, mas parece muito trabalho. Primeiro, veja este post para obter informações sobre como o osd opera
Inicie o dbus-monitor antes de enviar a execução 'notificar-enviar' em um console separado.
method call sender=:1.2450 -> dest=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
string "org.freedesktop.Notifications"
method call sender=:1.2450 -> dest=:1.41 serial=6 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=GetServerInformation
method return sender=:1.41 -> dest=:1.2450 reply_serial=6
string "notify-osd"
string "Canonical Ltd"
string "1.0"
string "1.1"
method call sender=:1.2450 -> dest=:1.41 serial=7 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
string "notify-send"
uint32 0
string "/usr/share/pixmaps/debian-logo.png"
string "My Title"
string "Some text body"
array [
]
array [
dict entry(
string "urgency"
variant byte 1
)
]
int32 -1
notify-osd vive no dbus
dpkg -L notify-osd /usr/share/dbus-1/services/org.freedesktop.Notifications.service
mas não há restrições adicionais para este serviço em /etc/dbus-1/system.d
Assim, você pode criar um arquivo de configuração que possa filtrar os eventos de notificação com base em sua origem e obter o controle desejado. É o melhor que posso fazer sem entrar no problema e na especificação do dbus. Espero que isso ajude, o que você está procurando deve ser mais fácil de configurar para começar.