this will allow for foot to be registered as a MIME type handler for directories, allowing a "open with foot" action via xdg-open.
some applications pass a simple directory path (eg. qbittorrent) but others pass it as a "file://" URL (lutris), which is also sometimes percent-encoded (calibre) but sometimes not. this PR should be able to handle all 3 of these variants.
this will allow for foot to be registered as a MIME type handler for directories, allowing a "open with foot" action via xdg-open.
some applications pass a simple directory path (eg. qbittorrent) but others pass it as a "file://" URL (lutris), which is also sometimes percent-encoded (calibre) but sometimes not. this PR should be able to handle all 3 of these variants.