0

As you know for starting google chrome on Linux as a root user, we need to follow the below steps:

vi /usr/bin/google-chrome
FROM:

export LD_LIBRARY_PATH

export CHROME_VERSION_EXTRA="stable"

# We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME

exec -a "$0" "$HERE/chrome" "$@"
TO:

export LD_LIBRARY_PATH

export CHROME_VERSION_EXTRA="stable"

# We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME

exec -a "$0" "$HERE/chrome" "$@" --no-sandbox

but now when I want to start chrome, the terminal comes up with chrome browser

Again, I defined the below changes:

vi /usr/bin/google-chrome

exec -a "$0" "$HERE/chrome" "$@" --no-sandbox &

but with the upper change, I cannot run chrome again

how can I hide the Linux terminal when I start chrome on Linux as a root user?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.