0

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

asked Mar 14, 2017 at 8:37
1
  • 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. Commented Mar 14, 2017 at 9:08

1 Answer 1

1

Run whoami in the shell. If the answer is root create a new account and run the program as the that new user.

answered Mar 14, 2017 at 8:46
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.