[Remind-Fans] Update reminders from an external program and see the effects in tkremind

nb nb at dagami.org
Sat Nov 30 10:05:38 EST 2013


Hi,

I'm using tkremind and I need to update reminder files from the outside.
The problem is that tkremind doesn't "see" these udates.
After reading the docs I have modified tkremind this way :

--- /usr/bin/tkremind   2013-11-24 08:34:34.000000000 +0100
+++ ./tkremind  2013-11-30 09:48:58.554313925 +0100
@@ -2821,7 +2821,11 @@
      # Doh -- don't interpret as an octal number if leading zero
      scan $secs "%d" decSecs
      set decSecs [expr 60 - $decSecs]
-    after [expr $decSecs * 1000] DisplayTimeContinuously
+    after [expr $decSecs * 1000] {
+        FillCalWindow
+        RestartBackgroundRemindDaemon
+        DisplayTimeContinuously
+    }
  }

The RestartBackgroundRemindDaemon call does the job.
The FillCalWindow permits to updade

Ii works but I would like to know if this method is good, and if so, if 
the patch could be applied to source.

Regards

nb



More information about the Remind-fans mailing list