[Novalug] process intercommunication
Thu Dec 29 16:07:16 EST 2016
On December 29, 2016 2:48:04 PM EST, Gary Knott via Novalug <firstname.lastname@example.org> 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.
More information about the Novalug