Open a pdf file with the default pdf viewer from the installed snap failed

Opening PDF files via the XDG mechanisms which GIO backs onto for this feature is currently not a whitelisted action. Snapd only permits limited xdc-open URLs such as http:// and https://, preventing file:/// from working. The work @jamesh is putting into portals might alleviate some of these problems, but it’s not ready yet.