html2image icon indicating copy to clipboard operation
html2image copied to clipboard

Ubuntu 2X.X: Chromium installed through Snap does not have access to /tmp/

Open Naeddyr opened this issue 1 year ago • 1 comments

Not really an issue with this project, but thought you'd might want to know.

Currently, access to any partition besides /home/ has been disabled on Chromium on Ubuntu. There is only the snap package (the debs have been removed some time ago), so there doesn't seem to be any obvious workaround for this.

Annoyingly, when Chromium fails to load the temp-file of a file copied to /tmp/html2image/ it just renders a completely blank transparent screenshot without an error-message.

Naeddyr avatar Dec 30 '23 15:12 Naeddyr

Just reproduced this issue unknowingly. It is really annoying that the transparent picture gets rendered silently. My workaround was to set temp_path='.' so it uses my project's folder for temporary files.

Thanks for pointing me in the right direction

gabryelreyes avatar Jan 04 '24 15:01 gabryelreyes