Descriptionwhen I do quarto install chrome-headless-shell
Instead of having puppeteer download new browser I can instruct it to use the already existing PUPPETEER_SKIP_DOWNLOAD="true"
PUPPETEER_EXECUTABLE_PATH="$HOME/.local/share/quarto/chrome-headless-shell/chrome-headless-shell-linux64/chrome-headless-shell"Where I got the path via I don't want to hardcode the path and extracting it from So is there an easier way to do this? Note, in the past I also hardcoded the path to tinytex bin which is also ugly and could be improved via a general tools path output. |
Replies: 1 comment 4 replies
|
quarto check install --output check.json
PUPPETEER_EXECUTABLE_PATH="$(jq -r .chrome.path check.json)"
For Decktape there is a neater option: invert the dependency. Quarto resolves Chrome in a fixed order, and export QUARTO_CHROMIUM="/path/to/puppeteer/managed/chrome-headless-shell"No path query is needed at all, and only one browser gets downloaded. |
It is currently hidden from CLI help but we have a
quarto tools infocommand.And you can do
This is probably going to change though...
quarto tools infowas something we were thinking of changing.However, I am considering adding support for
--jsonoutput more broadly so thatquarto tools listcan output JSON too. Maybe that would be the replacement. 🤔 You can follow #1393We have the path info we should expose it.
Though for the use case, I agree that I would go with
QUARTO_CHROMIUMif you want all your tool to use one single chromium you can manage without Quarto.