0

I saw Eel module which is used to make gui applications with Python and web languages. I tried that out and found that my application is using chrome extensions.

Like I have darkreader installed, and whenever I am enabling it, my application is getting affected.

How can I fix this issue?

BladeOfLightX
  • 504
  • 4
  • 17

1 Answers1

0

Eel allows you to pass flags to the underlying Chrome browser instance using the cmd_args argument to the eel.start() function. You can read more about this in the "App options" section in the Eel documentation.

Maybe try something like:

eel.start('main.html', cmdline_args=['--disable-extensions'])

I don't think there is an official list of Chrome flags available, but I tend to use this page as a starting point. Maybe there is a more appropriate flag than the one I quickly found.

dstricks
  • 1,465
  • 12
  • 23
  • That does not do the trick :( – BladeOfLightX Nov 01 '21 at 03:27
  • That's unfortunate! You're at the mercy of the underlying browser applications and their behaviors. For our learning purposes, did you try any flags other than --disable-extensions? Also, did you completely shut down the Chrome process before starting your Eel app with these flags (some flags only take effect when the Chrome process starts up). Lastly, another less-than-ideal option would be to manually select a browser other than Chrome when starting your Eel application ("mode" param)... it's not a "solution", but something to consider if no other alternatives are presented. Best of luck! – dstricks Nov 01 '21 at 21:27