gtkdialog timer file-monitor doesn't work
I have reported the problem today on my blog:
https://bkhome.org/news/202010/problem- ... idget.html
Here is the code:
Code: Select all
<timer visible="false" file-monitor="true" interval="1">
<variable>TIMERNEW</variable>
<input file>/tmp/bluepup/found-new-devices</input>
<action signal="file-changed">clear:BTNEWDEVICE</action>
<action signal="file-changed">refresh:BTNEWDEVICE</action>
<action signal="file-changed">clear:BTREGDEVICE</action>
<action signal="file-changed">refresh:BTREGDEVICE</action>
</timer>
The weird thing is that it does work -- once. The timer variable is still "true" when the GUI is exited, so seems to still be running. It would seem that "file-monitor" is not doing what I think it should be doing.
Has anyone had experience with using "file-monitor", is there something wrong with the syntax the way I am trying to do it?
Or, is there some other way for my outside script to tell the GUI to do things?
Any thoughts welcome!
Oh, that code is part of BluePup, that I am currently working on. Some early snapshots here:
https://bkhome.org/news/202010/bluepup- ... urned.html