-
Notifications
You must be signed in to change notification settings - Fork 330
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
Quarto deos not find chromium if installed through flatpak #2980
Comments
I just verified that I can work around this issue by adding the following command:
It would be better, however, to fix the |
Thanks for the report, and I'm glad the workaround is there for you. If flatpak installations are such that chromium is not on the path, I'm not sure how the quarto codebase should respond. I'm personally relatively conservative wrt non-standard approaches like flatpak and snap (I'm aware of their popularity because of Ubuntu. They still don't appear to use the standard unix way of advertising binaries through PATH). |
Flatpak does put "fake binaries" that can be executed in |
That directory is not available on my setup (this is the fairly standard Pop_OS). My suggestion is that |
Ubuntu is notorious for shipping outdated versions of Flatpak. Is this the case for Pop!_OS too? |
I have opened an macro issue to track a proper solution |
Bug description
Quarto apparently requires Chrome or Chromium to render graphviz documents, but on Pop_OS 22.04, chromium is only available through flatpak. The search method in puppeteer.ts#findChrome don't find the flatpak installation.
Steps to reproduce (Debian Linux assumed):
quarto tools install chromium
(this should removechromium-browser
from the path.flatpak install org.chromium.Chromium
(note, run this as user, not root).flatpak run org.chromium.Chromium
foo.qmd
(attached). This will generate the error.foo.qmd.txt
I'm getting this error with RStudio 2022.07.0+548 "Spotted Wakerobin" Release (34ea3031089fa4e38738a9256d6fa6d70629c822, 2022-07-06) for Ubuntu Jammy
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36 and quarto version 1.0.37
Some quick tests with my machine verify that the command
flatpak info org.chromium.Chromium
can be used to test that chromium is installed using flatpak (andwhich flatpak
can be used to test for flatpak. The info command will return an error if chromium is not installed.If it is installed, it can be launched using
flatpak run org.chromium.Chromium ...
where ... are the usual command line arguments.Checklist
The text was updated successfully, but these errors were encountered: