Good ! So you succeed in using the trick r0kk3rz gave me (as described in a post in first page) ! I didn't take the time to make an app of it.
What I thought when tried the notification, was that we can give a command to run when clicking on the notification. In this case an open-ui and call the voicemail number would be great. The voicemail number can be retrieved directly from the ofono message waiting structure.
#!/usr/bin/python import dbus bus = dbus.SessionBus() object = bus.get_object('org.freedesktop.Notifications','/org/freedesktop/Notifications') interface = dbus.Interface(object,'org.freedesktop.Notifications') #print(interface.GetCapabilities()) interface.Notify("app_name", 0, "icon-lock-voicemail", "You have Voice Mail !", "Voicemail notifer", dbus.Array(["default", ""]), dbus.Dictionary({"x-nemo-preview-body": "Voicemail notifer", "x-nemo-preview-summary": "You have Voice Mail !", "category": "x-nemo.messaging.voicemail"}, signature='sv'), 0)
#!/bin/bash while true do time=$(cat /usr/share/openrepos-voicemailnotifer/time) mailstatus=$(/usr/lib/qt5/bin/qdbus --system org.ofono /ril_0 org.ofono.MessageWaiting.GetProperties|grep Waiting|awk '{print $2}') if [[ $mailstatus == "true" ]]; then pid=$(sqlite3 /home/nemo/.local/share/system/privileged/Notifications/notifications.db "select * from notifications;"|grep "lock-voicemail"|cut -d '|' -f1) if [[ $pid == "" ]]; then su -l nemo -c "python /usr/share/openrepos-voicemailnotifer/notifer3.py" else : fi else pid=$(sqlite3 /home/nemo/.local/share/system/privileged/Notifications/notifications.db "select * from notifications;"|grep "lock-voicemail"|cut -d '|' -f1) if [[ $pid == "" ]]; then : else su -l nemo -c "notificationtool -o remove -i $pid" fi fi sleep $time done
pkcon remove voicemailnotifer