The patch looks OK and we could take it as an interim step, but IMO these sound issues would be better handled in unity8 / unity-notifications.
IMO what indicator-datetime should be doing is passng the 'sound-file' hint to notifications. The reason it's not doing that right now is the need to loop the sound, but if unity8/unity-notifications supported a 'loop' hint then we could do away with the custom sound code in indicator-datetime completely.
As for the code itself, looks like a pretty good start. Comments inline.
The patch looks OK and we could take it as an interim step, but IMO these sound issues would be better handled in unity8 / unity-notificat ions.
IMO what indicator-datetime should be doing is passng the 'sound-file' hint to notifications. The reason it's not doing that right now is the need to loop the sound, but if unity8/ unity-notificat ions supported a 'loop' hint then we could do away with the custom sound code in indicator-datetime completely.
As for the code itself, looks like a pretty good start. Comments inline.