answered
2017-05-30 22:49:13 +0200
This post is a wiki.
Anyone with karma >75 is welcome to improve it.
Okay I have been tinkering around this, and figured out the followings:
The calendar QML UI sends down the "calendar" event to an object of org.nemomobile.ngf in the /usr/share/jolla-alarm-ui/pages/AlarmDialogBase.qml
If my understanding is correct this QML type is created by this library:
https://git.merproject.org/mer-core/libngf-qt
This library calls the com.nokia.NonGraphicFeedback1.Play DBUS method here:
https://git.merproject.org/mer-core/libngf-qt/blob/master/src/dbus/clientprivate.cpp#L266
To verify my theory I have started to poke with the dbus-send to programatically call this method to see it's effect:
[nemo@Sailfish ~]$ dbus-send --system --print-reply --dest=com.nokia.NonGraphicFeedback1.Backend /com/nokia/NonGraphicFeedback1/request com.nokia.NonGraphicFeedback1.Play string:"calendar" array:string:"none" array:string:variant:int32
method return time=1496173458.852090 sender=:1.31 -> destination=:1.552 serial=682 reply_serial=2
uint32 170
Unfortunately this does not generates any sound/vibration.
If I monitor the DBUS with dbus-monitor during the calendar event I see no calls to these methods.
Any ideas would be welcomed!
I second this.
Too often I find myself setting up an alarm instead of a calendar reminder, to be sure that I won't miss an important event.
ScumCoder ( 2017-05-25 21:30:58 +0200 )editYeah alarms could be a workaround, but what about recurring events and events more than a day further?
martonmiklos ( 2017-05-25 23:24:27 +0200 )edit