Closed
Description
- Electron-Builder Version: 25.1.8
- Node Version: 22
- Electron Version: 32.2.1
- Electron Type (current, beta, nightly): current
- Target: Linux
Ubuntu 24 installation requires AppArmor profile to be configured for the app, see
- Ubuntu 24 AppArmor user namespace creation restrictions cause many applications to crash
- [Bug]: All versions of Electron (chromium upstream bug) fail to open on Ubuntu 24.04+ due to kernel.apparmor_restrict_unprivileged_userns=1 by default electron/electron#41066
Solution is to detect OS with AppArmor and create a file in /etc/apparmor.d/<exe-name>
:
# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"
abi <abi/4.0>,
include <tunables/global>
profile <exe-name> "/opt/<install-path>/<exe-name>" flags=(unconfined) {
userns,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/<exe-name>
}
Note: remove this file when the app is uninstalled.
See also:
- Add AppArmor profile for Connect gravitational/teleport#43595 - including code for
after-install.tpl
checking AppArmor and installation. - Electron appimage does not work on Ubuntu 24.04 gm-vm/openfortivpn-webview#37 - just advice for manual configuration.
Metadata
Metadata
Assignees
Labels
No labels