daisy / daisy/ace

Unnecessary X11 display requirement on command-line use of ACE

Open
#454 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
98
Forks
29
PR merge metrics
No merged PRs in 30d

Description

There seems to be some underlying library related to the electron module requiring a X server to display on, even though no GUI is being used.

We have a use-case to run 'ace' in a background process for users of our website (as we do with 'epubcheck'), so we would like it to run on the command line on its own.

However:
```
LocalMachine:~ localuser$ ssh user@server
Last login: Tue Oct 21 12:02:29 2025 from IP
[user@server ~]$ ace --version
[16465:1021/132316.372714:ERROR:ozone_platform_x11.cc(246)] Missing X server or $DISPLAY
[16465:1021/132316.372850:ERROR:env.cc(257)] The platform failed to initialize. Exiting.
/PATH/TO/node_modules/@daisy/ace/node_modules/electron/dist/electron exited with signal SIGSEGV
[user@server ~]$ exit
logout
Connection to server closed.
LocalMachine:~ localuser$ ssh -X user@server
Last login: Tue Oct 21 13:23:02 2025 from IP
[user@server ~]$ ace --version
1.3.7
[user@server~]$
```
Is the assumption that anyone trying to run a command-line should use the HTTP server / API version instead?

This is on RHEL 9.6, Node 22.19.0, ACE 1.3.7.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.