jonbrett / cinnamon-feeds-applet

Cinnamon applet for fetching and displaying RSS feeds
https://jonbrettdev.wordpress.com
20 stars 10 forks source link

Dynamically reload the feeds file when changed #30

Closed jonbrett closed 10 years ago

jonbrett commented 11 years ago

Currently when the user opts to use a feeds file via the applet settings, they are responsible for reloading the contents of that file via the "Reload Feeds File" entry in the applet right-click menu.

A more elegant solution would be for the applet to use a Gio.FileMonitor on the feeds file and get notified of update events.

See monitor method in Gio.File docs: http://www.roojs.org/seed/gir-1.2-gtk-3.0/seed/Gio.File.html

See also Gio.FileMonitor GTK documentation (e.g. we will need to connect to the changed event). http://www.roojs.org/seed/gir-1.2-gtk-3.0/seed/Gio.FileMonitor.html

NiklasMM commented 11 years ago

Nice idea! I guess the file parsing would have to be very robust so it doesn't kill the applet if mistakes are made in the file. (Which is anyway something to work on).

I wonder if it is possible to get rid of the file solution altogether. See issue #31

jonbrett commented 11 years ago

Getting rid of the feed file would be my preferred solution. It depends how difficult it is / how long it might take as to whether this should be done beforehand.

jonbrett commented 10 years ago

No longer required since #31 has replaced feed files