import os os.system("chromium-browser --kiosk")
when i run this code in python it showing error "" please start chromium as a normal user cannot run as root user ""
how to start chromium-browser as normal user in python shell command
-
if you run chromium-browser --kiosk in your terminal window do you get the same error? os.system should run in the context of the user running the script.rob– rob2017年03月14日 09:08:19 +00:00Commented Mar 14, 2017 at 9:08
1 Answer 1
Run whoami
in the shell. If the answer is root
create a new account and run the program as the that new user.
lang-py