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

fix: allow run when electron flags set

Open zbinlin opened this issue 7 months ago • 2 comments

Fixes an issue where running electron35 --high-dpi-support=1 --force-device-scale-factor=2 /usr/lib/drawio-desktop/app.asar causes the error: error: too many arguments. Expected 1 argument but got 2..

zbinlin avatar Apr 26 '25 06:04 zbinlin

Thanks, I just want to test if https://github.com/jgraph/drawio-desktop/commit/60392883c5f812bde009d26b20ac5186149f66a7 is the problem first.

davidjgraph avatar Apr 26 '25 18:04 davidjgraph

The issue is this breaking change in commander 13.0.0, https://github.com/tj/commander.js/pull/2223. We'll disable excessive args checking for now and see whether your fix is better.

davidjgraph avatar Apr 26 '25 19:04 davidjgraph