Raspberry Pi 3+ Web Browser Opening Error
May 5, 2024
When trying to open a link in the browser from the GUI application written as a Python script on Raspberry Pi 3+, a Web browser opening error was received.
The error code received on the Raspberry Pi was as follows;
/usr/bin/xdg-open http://google.com /usr/bin/xdg-open: 811: : Permission denied
This error occurs due to unauthorized opening of Python’s webbrowser library.
[45:0710/213111.584824:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180 296.
To solve the error and open a web browser in the Python GUI application, the following code must be added.
import os
os.system("chromium https://mesebilisim.com")
Enjoy your work.