You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Linux deb/rpm don't declare ALSA and libgbm, app fails to start on minimal systems #5784
The Linux deb and rpm packages don't list ALSA (libasound2) or libgbm1 as dependencies, but the Electron binary links both. On a system that doesn't already have them, the package installs fine and then the app fails at startup.
We first ran into this while testing the arm64 deb from the #5778 PR build on a phone running Ubuntu in proot. The x64 deb has the same gap.
Cause: electron-builder's default deb dependency list (libgtk-3-0, libnotify4, libnss3, libxss1, libxtst6, xdg-utils, libatspi2.0-0, libuuid1, libsecret-1-0) and its rpm list leave out ALSA and libgbm, and packages/desktop/electron-builder.yml doesn't override them. On a full desktop install these libraries are usually already there, which hides the problem.
Steps to Reproduce
Start from a clean ubuntu-base 24.04 or 26.10 root (no desktop installed).
apt pulls in everything the app needs, and marktext --version prints the version.
Actual Behavior
The binary can't load libasound.so.2 and exits. On Ubuntu 22.04, libgbm.so.1 is missing too (installing only ALSA there still fails on libgbm).
Screenshots / Logs
Ubuntu 26.10 and 24.04, ldd and --version after installing the deb:
-- missing libs:
libasound.so.2 => not found
-- run --version:
/opt/MarkText/marktext: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
Ubuntu 22.04 with ALSA installed:
libgbm.so.1 => not found
/opt/MarkText/marktext: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory
Activity