Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-verify or auto-fill hash if a .sha256 file is in the same directory #190

Open
cassidyjames opened this issue Sep 27, 2022 · 2 comments

Comments

@cassidyjames
Copy link
Contributor

I'm not entirely sure if this is feasible, especially in the Flatpak sandbox, but a common way I use Popsicle is to flash an image from a download when I have a matching .sha256 file alongside the image. It would be handy if Popsicle could detect if that file exists and either automatically try to verify the image, or at least auto-fill the hash to be checked from the shasum file.

@ids1024
Copy link
Member

ids1024 commented Sep 27, 2022

Yeah, I don't think this would be possible in the Flatpak sandbox (without giving it broader filesystem permissions). The FileChooser portal creates an open dialog outside the sandbox, and only gives us the file descriptor for the individual file selected by the user. We could enable multiple selection, but wouldn't have a way to enforce that exactly one image and at most one checksum file are selected.

Without such restrictive sandboxing, it shouldn't be that difficult. Mainly a matter of deciding on exactly how it should behave and how the UI could communicate that clearly to the user.

@cassidyjames
Copy link
Contributor Author

I guess this would be blocked pending flatpak/xdg-desktop-portal#463

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants