Properly handle URI schemes other than "file"
When working on apps/mousepad#81 (closed), I realized that Thunar could not open a terminal in a gvfs location (via Thunar UCAs).
The cause is the same as for apps/mousepad#81 (closed): a limitation in g_filename_from_uri()
, which only handles the "file" URI scheme. Since this affects xfce_expand_desktop_entry_field_codes()
here, all components that use it are also impacted: Thunar UCAs as above, Thunar DnD, Panel DnD, etc.
The only way I see at the moment to fix this is to use GFile APIs. Maybe there would be another way with GLib URI functions, but only from version 2.66 I think (using GUri and related APIs).
Related: !2 (merged).
Edited by Gaël Bonithon