seems root requires --no-sandbox

at least on my system (Ubuntu 20.04, uname 5.4.0-88-generic #99-Ubuntu SMP Thu Sep 23 17:29:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux)
the command: sudo /usr/bin/code --user-data-dir=/root/vscode/datadir
does seemingly _nothing_, just returns 0 immediately, while
the command: sudo /usr/bin/code --user-data-dir=/root/vscode/datadir --no-sandbox
starts vscode... why? i don't know
This commit is contained in:
divinity76 2021-11-13 17:00:21 +01:00 committed by GitHub
parent de69c40e1e
commit 09bf59ec5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ if [ "$(id -u)" = "0" ]; then
esac
done
if [ -z $CAN_LAUNCH_AS_ROOT ]; then
echo "You are trying to start @@PRODNAME@@ as a super user which isn't recommended. If this was intended, please specify an alternate user data directory using the \`--user-data-dir\` argument." 1>&2
echo "You are trying to start @@PRODNAME@@ as a super user which isn't recommended. If this was intended, please add the argument \`--no-sandbox\` and specify an alternate user data directory using the \`--user-data-dir\` argument." 1>&2
exit 1
fi
fi