mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6771] Electron apps not launching when default shell is not bash #3365
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3365
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pranaovs on GitHub (Jun 8, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6771
Description
(Some) Electron apps (example FreeTube) refuse to run when the default shell is not bash.
Steps to Reproduce
$ ln -sfT dash /usr/bin/sh$ freetube/usr/bin/freetube: 3: electron35: not foundExpected behavior
The app launches
Actual behavior
Error:
/usr/bin/freetube: 3: electron35: not foundBehavior without a profile
The application opens
Additional context
The issue seems to occur because electron* in
/usr/binseem to be a bash script:Now when the default shell is changed, the particular app (Freetube), which depends on electron(35), does not have a to /usr/bin/bash, because it is not private-bin or whitelisted.
Instead /usr/bin/dash and /usr/bin/sh -> dash exist.
This issue can fixed when adding
private-bin bashto electron-common.local.Environment
uname -srm): Linux 6.14.10-arch1-1 x86_64mesa 1:24.3.3-2"): FreeTube v0.23.5 Beta; electron35 v35.5.1
firejail --version): firejail version 0.9.74Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.[] I used--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail /path/to/program@pranaovs commented on GitHub (Jun 8, 2025):
I believe this is a non-issue. I'm opening this for documenting this or possible fixes by upstream.
Also im not sure if electron being a bash script is something arch linux does or it is a common case.