Support for File Chooser Dialog in File Manager DBus Interface
Hi, I am the maintainer of thunar.
From time to time people ask me, why Nautilus(aka Files) is used to open/save a file, instead of their default file manager, thunar. Here an example: https://gitlab.xfce.org/xfce/thunar/-/issues/360
Actually "GtkFileChooserDialog" is used, which looks very similar to nautilus. That is a bit confusing, since people expect the known thunar side-pane and UI to pick files.
In order to fix that, we could have two additional methods on the DBus Interface "/org/freedesktop/FileManager1". Here a very incomplete proposal:
<method name="ShowOpenDialog">
<arg direction="in" name="title" type="s"/>
<arg direction="in" name="StartupId" type="s"/>
<arg direction="in" name="singleFile" type="b" />
<arg direction="out" name="URIs" type="as"/>
<arg direction="out" name="SupportedMimeTypes" type="as"/>
</method>
<method name="ShowSaveDialog">
<arg direction="in" name="title" type="s"/>
<arg direction="in" name="prefilledURI" type="s"/>
<arg direction="in" name="StartupId" type="s"/>
<arg direction="out" name="URI" type="s"/>
<arg direction="out" name="SupportedMimeTypes" type="as"/>
</method>