[Novalug] process intercommunication

Scott Talbert swt@techie.net
Thu Dec 29 16:59:00 EST 2016



On December 29, 2016 4:18:40 PM EST, Jon LaBadie via Novalug <novalug@firemountain.net> wrote:
>On Thu, Dec 29, 2016 at 04:07:16PM -0500, Scott Talbert via Novalug
>wrote:
>> 
>> 
>> On December 29, 2016 2:48:04 PM EST, Gary Knott via Novalug
><novalug@firemountain.net> wrote:
>> >I'm running the Firefox browser, and I'm viewing my gmail
>> >page, and I'm "composing" an email to send to someone,
>> >and I click on the paperclip to "attach" a file (a pdf file
>> >generated from a .tex file actually), and the "file chooser"
>> >window pops-up, listing my top-level files, including
>> >the file I want to attach.
>> >
>> >Now I see it is out-of date, so I switch to a terminal
>> >window, and rebuild the pdf file I want to attach.
>> >
>> >The "file-chooser" window is automatically updated
>> >to show the date and size of the new file!
>> >
>> >Can anyone explain in some just-right detail how that
>> >trick is coded?   (How it might be coded is good, but
>> >how it really is coded is even better.)
>> 
>> If I had to guess, I would think they are probably using something
>like inotify to watch the filesystem for changes, and then refresh the
>listing when that happens.
>> 
>
>That would allow the updates to occur whether the window
>is active or not.  Another simple possibility is to redisplay
>the listing every time the window is selected.

Yes, that's a possibility too.  I'm not going to volunteer to read the Firefox code to find out for sure though :-)


More information about the Novalug mailing list