Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression in --allow-local-files option with Snapd Chromium #283

Merged
merged 4 commits into from
Sep 12, 2020

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Sep 12, 2020

This PR includes these bugfixes:

  • We've missed a breaking change in the bumped tmp dependency (Upgrade dependent packages to the latest version #229 (comment)) so I fixed the logic for making tmpfile in --allow-local-files option.
  • Recently Snapd Chromium is prepared the shebang script in /usr/bin/chromium-browser. chrome-launcher will detect this so we can't detect Snapd Chromium from the executable path. We may still able to detect snap by reading the content of script but it requires extra file-reading. Thus, we will always create Snapd-compatible tmpfile for --allow-local-files option if used CLI in Linux. A tmpfile will always be placed to home directory.

Fix #201 again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--allow-local-files fails on chromium in snap environment
1 participant