drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

CLI use in CI/CD pipeline

Open Alex-S-H-P opened this issue 8 months ago • 2 comments

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.

I have recently had a project where I test my software accross various scales of images (some being ludicrous) and am testing it using the drawio CLI to export a drawio project. I then run on the most common of issues in software development: it works on my machine, but only on my machine.

My runner does not seem to be able to run the program, even when I don't use the GUI.

Since the runner runs everything as a root user, electron fails and tells me:

[..../.......:FATAL:electron_main_delegate.cc(288)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

Describe the solution you'd like

I would like this issue not to occur when I'm running the software with the CLI. I have found some references to a --drawio-desktop-headless option, which seems to do nothing (no error, no doc in --help, does not fix the issue). Maybe, when the code is ran with this option, fix the issue with electron ?

Additional context

I also (and I'm putting it here for posterity, because I'd have liked to have google find the answer) had issues installing on my machine.

I fixed it somewhat by running:

apt -y update && apt -y upgrade
apt -y install wget
wget -q https://github.com/jgraph/drawio-desktop/releases/download/v26.1.1/drawio-amd64-26.1.1.deb
apt -y install ./drawio-amd64-26.1.1.deb --fix-broken
apt -y install libasound2-plugins

Alex-S-H-P avatar Mar 21 '25 22:03 Alex-S-H-P