The OpenURI portal has a separate method to handle local files now. Use it. At the same time, split out the openuri helpers into separate files, and generate code for the OpenURI portal. https://bugzilla.gnome.org/show_bug.cgi?id=783193