Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e775d34460
2 changed files with 8 additions and 1 deletions
|
@ -43,7 +43,13 @@ fonts-liberation \
|
|||
libappindicator1 \
|
||||
libnss3 \
|
||||
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 \
|
||||
traceroute \
|
||||
|
|
|
@ -28,6 +28,7 @@ class ScreenshotCog(commands.Cog):
|
|||
self.chrome_options.add_argument("--remote-debugging-port=9222")
|
||||
if os.getuid() == 0:
|
||||
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.log.warning("Running as root, disabling chrome sandbox.")
|
||||
|
||||
|
|
Loading…
Reference in a new issue