-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
--allow-local-files
fails on chromium in snap environment
#201
Comments
See also similar issue happened by Snap Chromium: marp-team/marp-vscode#94, https://forum.snapcraft.io/t/sharing-files-via-tmp/1613 A simple workaround:
|
Thank you. |
The suggested warning may be helpful for CLI user, but does not resolve marp-team/marp-vscode#94 so thinking about radical solution would be better. Owing to your report, we recognized the Snapd Chromium cannot access from the sandbox container to user-land Marp CLI should create visible tmp file into |
Fixed in v0.17.1. |
Looks like this bug still appears
|
@zhelnio Thanks! Previously Marp CLI could find out yhatt@yhatt-ubuntu2004:~$ echo '# Marp' | DEBUG=puppeteer:launcher npx @marp-team/marp-cli -o ~/marp.pdf --allow-local-files
[ INFO ] Converting 1 markdown...
[ WARN ] Insecure local file accessing is enabled for conversion from -.
puppeteer:launcher Calling /usr/bin/chromium-browser --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --user-data-dir=/tmp/marp-cli-conversion --headless --hide-scrollbars --mute-audio about:blank --export-tagged-pdf --remote-debugging-pipe +0ms
[ WARN ] The local file is missing and will be ignored. Make sure the file path is correct.
[ ERROR ] Failed converting Markdown. (net::ERR_FILE_NOT_FOUND at file:///tmp/tmp-9964-KRtSNXzO5F7m-.html)
yhatt@yhatt-ubuntu2004:~$ tail /usr/bin/chromium-browser
}
}
EOF
)"
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "$SCRIPT" 2> /dev/null
fi
# TODO: handle other desktop environments
exec /snap/bin/chromium "$@" Probably we should check the path of "real" process launched by Puppeteer. |
@yhatt I've tried to set CHROME_PATH but it did not help
|
I think it may be another problem that has brought from #259 and #264 (released in v0.20.0). Is |
No, it does not
|
Ah, it didn't a real matter. Probably we've missed a breaking change of node-tmp to create tmpfile for conversion. |
Fixed again in v0.21.1. |
It happens in npm, npx, Standalone binary in Debian sid adm64 environment.
Chromium in this environment includes a snap version and a Debian package version.
Using the package version instead of the snap version worked fine.
The text was updated successfully, but these errors were encountered: