Merge remote-tracking branch 'origin/master'

This commit is contained in:
Nexus 2024-02-11 17:54:15 +00:00
commit e775d34460
Signed by: nex
GPG key ID: 0FA334385D0B689F
2 changed files with 8 additions and 1 deletions

View file

@ -43,7 +43,13 @@ fonts-liberation \
libappindicator1 \ libappindicator1 \
libnss3 \ libnss3 \
lsb-release \ lsb-release \
xdg-utils xdg-utils \
chromium \
chromium-common \
chromium-driver \
chromium-sandbox \
chromium-shell \
webext-ublock-origin-chromium
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
traceroute \ traceroute \

View file

@ -28,6 +28,7 @@ class ScreenshotCog(commands.Cog):
self.chrome_options.add_argument("--remote-debugging-port=9222") self.chrome_options.add_argument("--remote-debugging-port=9222")
if os.getuid() == 0: if os.getuid() == 0:
self.chrome_options.add_argument("--no-sandbox") self.chrome_options.add_argument("--no-sandbox")
self.chrome_options.add_argument("--disable-dev-shm-usage")
self.chrome_options.add_argument("--disable-setuid-sandbox") self.chrome_options.add_argument("--disable-setuid-sandbox")
self.log.warning("Running as root, disabling chrome sandbox.") self.log.warning("Running as root, disabling chrome sandbox.")