Skip to content

Instantly share code, notes, and snippets.

@GGontijo
Created March 6, 2024 14:10
Show Gist options
  • Save GGontijo/81298d92ff587332e31b7f913f66b488 to your computer and use it in GitHub Desktop.
Save GGontijo/81298d92ff587332e31b7f913f66b488 to your computer and use it in GitHub Desktop.
Allow Google Chrome / Microsoft Edge to run as root in linux adding --no-sandbox flag to it's launchers
sed -i -e 's@Exec=/usr/bin/microsoft-edge-dev %U@Exec=/usr/bin/microsoft-edge-dev %U --no-sandbox@g' /usr/share/applications/microsoft-edge-dev.desktop
sed -i -e 's@Exec=/usr/bin/google-chrome-stable %U@Exec=/usr/bin/google-chrome-stable %U --no-sandbox@g' /usr/share/applications/google-chrome.desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment