GNOME Bugzilla – Bug 773893
networkAgent: Invalidate VPN plugin cache on changes
Last modified: 2016-11-10 13:40:44 UTC
See patch.
Created attachment 339021 [details] [review] networkAgent: Invalidate VPN plugin cache on changes Currently the cache is built once when the first VPN request is handled, so plugins that are installed or uninstalled after that aren't picked up. Fix this by invalidating the cache on changes to the plugin directory.
Review of attachment 339021 [details] [review]: ::: js/ui/components/networkAgent.js @@ +617,3 @@ + this._pluginDir = Gio.file_new_for_path(GLib.build_filenamev([Config.SYSCONFDIR, 'NetworkManager/VPN'])); + let monitor = this._pluginDir.monitor(Gio.FileMonitorFlags.NONE, null); wouldn't hurt to wrap this in a try/catch block
Attachment 339021 [details] pushed as 15be562 - networkAgent: Invalidate VPN plugin cache on changes (In reply to Rui Matos from comment #2) > wouldn't hurt to wrap this in a try/catch block Right, did that.