chromiumoxide icon indicating copy to clipboard operation
chromiumoxide copied to clipboard

Error `unknown flag 'disable-background-networking'` while using with Chromium

Open RiddleMan opened this issue 2 years ago • 1 comments

I experience an error while using chromiumoxide with Chromium 119.0.6045.105 on Ubuntu 22.04. I run the latest version of chromiumoxide from main branch at the moment of writing it's 88470cabec15ffc2a91dc5579ec142e921d59eab.

I get this error: image

RiddleMan avatar Nov 03 '23 19:11 RiddleMan

Hi, I encountered the same issue and narrow it down to the canonicalize function of either async_std or tokio, the issue is chromium is installed through snap and the chromium is a symbolic link to /usr/bin/snap. canonicalize follow the symlink to use the real executable which does not work in this case as snap should not be called directly. chromium identified first as /snap/bin/chromium

Then canonicalize transforms it to /usr/bin/snap

Only way/Easiest way to handle this is to cancel the canonicalize if the final path is targetting snap, needs to be done/fixed in this plugin, there is no workaround I can think of.

I might give it a shot next year as I won't have access to a computer for the next few days. Have a good New Year's Eve !

jloupdef avatar Dec 29 '23 19:12 jloupdef