mattsse / chromiumoxide

Chrome Devtools Protocol rust API
Apache License 2.0
712 stars 69 forks source link

fallback if snap is targetted #200

Open jloupdef opened 6 months ago

jloupdef commented 6 months ago

This PR fixes #186 by reverting the canonalization in case the final binary is snap (when chromium is installed through snap). We still try to make the path absolute and clean it. It might not be as effective but we only be done when snap is detected and used in a case which wasn't working before.

It will be more elegant to use fs::absolute but the feature is still in nightly rust version.