X server is needed? #6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I cannot seem to start-up the
python -m matrix_puppeteer_line
after all of the configurations:This is on a headless server, any ideas of how to circumvent this?
Yes, an X server is needed, as Puppeteer cannot be run headless with extensions enabled in Chrome (doc).
What should work is running an X server in the background. Some options for doing so are given here: https://stackoverflow.com/questions/32156691/running-a-program-with-gui-without-displaying-in-ubuntu.
Once I find a way of doing this that works, I'll add it to SETUP.md. Rest assured that I certainly want this bridge to work on headless servers.
Hmm, I see that chrome has built-in
headless
. Does it not work with extensions?I haven't tried using the flag directly, but I did try using Puppeteer's headless mode, which I believe sets that flag itself. Doing so prevents the LINE extension from being loaded, unfortunately.
Hmm, that's unfortunate. So until that's solved we'll use something like
xvfb
? Are there many adjustments needed to get that working?I assume no adjustments are needed, but I haven't tried it yet.
I've confirmed that
xvfb-run node src/main.js
gets it workingGreat, thanks for confirming!
I'll update SETUP.md to mention this.
Instructions added by
862398c00e
.