danirod / cartero

Make HTTP requests and test APIs
https://cartero.danirod.es
GNU General Public License v3.0
415 stars 31 forks source link

Flathub requirements #47

Closed danirod closed 3 months ago

danirod commented 3 months ago

Some issues that needs to be addressed upstream in order to have the application submitted to Flathub.

Missing AppStream file

A file describing Cartero must be made. This is easy to do, but I need to take some screenshots.

Sandboxing

It seems that I haven't tested much Cartero in sandbox mode, and Flathub uses sandbox mode. Things do not look very great, as files outside ~/Documents have issues opening. The reason seems to be that using Rust file methods can't be hooked to interact with the file portal that Flatpak would provide to open the file.

It would be necessary to migrate the file operations so that instead of working with raw PathBufs and calling std::fs methods, it uses gio::File methods.

I could keep using the --filesystem=host parameter in the Flatpak manifest. My explanation for that would be that since Cartero is a development tool, I can expect users to have files in locations outside ~/Documents, such as ~/Projects, ~/dev, ~/code, etc, and forcing the users to save their data in ~/Documents would be extremely unhelpful. However, they have to buy the argument and pass the review.