Fix no RemoteDebuggingPort
This commit is contained in:
parent
54eed00571
commit
c41f912690
1 changed files with 2 additions and 0 deletions
|
@ -25,8 +25,10 @@ class ScreenshotCog(commands.Cog):
|
||||||
self.chrome_options.add_argument("--headless")
|
self.chrome_options.add_argument("--headless")
|
||||||
self.chrome_options.add_argument("--disable-extensions")
|
self.chrome_options.add_argument("--disable-extensions")
|
||||||
self.chrome_options.add_argument("--incognito")
|
self.chrome_options.add_argument("--incognito")
|
||||||
|
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-setuid-sandbox")
|
||||||
self.log.warning("Running as root, disabling chrome sandbox.")
|
self.log.warning("Running as root, disabling chrome sandbox.")
|
||||||
|
|
||||||
prefs = {
|
prefs = {
|
||||||
|
|
Loading…
Reference in a new issue