Detect when there is no space left on device during installation
We've had reports of users failing to install / use Dangerzone due to a lack of space on their device (see https://github.com/freedomofpress/dangerzone/issues/1111).
We could do a better job at detecting the lack of space on their system and letting them know. One way of doing this is by looking for the logs after an installation failure,looking for a specific string and raising a related exception, that could be catched and then displayed.
We've had reports of users saying that they got a message:
[INFO] Successfully installed container image"
Even though they were lacking space and the image wasn't installed.
The current code checks for errors when doing a podman load -i so it might be that podman is not reporting errors properly, in which case we might want to act differently. Another way of solving this would be to check if there is enough space on the device before attempting an installation (even though we cannot know for sure what size will be needed for the uncompressed /loaded image).