[GH-ISSUE #6421] element-desktop: Unable to find Electron app at /usr/share/element/app #3269

Closed
opened 2026-05-05 09:52:39 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @leukimi on GitHub (Jul 27, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6421

Description

element-desktop.profile on openSUSE Tumbleweed fails to start /usr/bin/element-desktop. Electron is located at /usr/bin/electron.

Steps to Reproduce

  1. Install element-desktop from software.opensuse.org
  2. Run in bash LC_ALL=C firejail /usr/bin/element-desktop

Expected behavior

Application window should open.

Actual behavior

Process exits without opening main window.

Behavior without a profile

Output of LC_ALL=C firejail --noprofile /usr/bin/element-desktop

Parent pid 15379, child pid 15380
Warning: cannot find /var/run/utmp
Child process initialized in 12.43 ms
/home/user/.config/Element exists: yes
/home/user/.config/Riot exists: no
No update_base_url is defined: auto update is disabled
Fetching translation json for locale: en_EN
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
[2:0727/185125.147277:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018

<Window opens>

Environment

  • updated openSUSE Tumbleweed
  • Firejail v0.9.72

Checklist

  • The issues is caused by firejail.
  • I can reproduce the issue without custom modifications.
  • The program has a profile.
  • The profile hasn't already been fixed upstream.
  • I have performed a short search for similar issues.

Log

Output of LC_ALL=C firejail /usr/bin/element-desktop

Reading profile /etc/firejail/element-desktop.profile
Reading profile /etc/firejail/riot-desktop.profile
Reading profile /etc/firejail/riot-web.profile
Reading profile /etc/firejail/electron.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 9532, child pid 9536
Warning: cannot find /var/run/utmp
Warning: skipping Element for private /opt
Private /opt installed in 0.10 ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Child process initialized in 193.24 ms
[4:0727/183420.166497:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied
Error launching app
Unable to find Electron app at /usr/share/element/app

Cannot find module '/usr/share/element/app'

Parent is shutting down, bye...

Output of LC_ALL=C firejail --debug /usr/bin/element-desktop

debug_log (link to log)

Originally created by @leukimi on GitHub (Jul 27, 2024). Original GitHub issue: https://github.com/netblue30/firejail/issues/6421 <!-- See the following links for help with formatting: https://guides.github.com/features/mastering-markdown/ https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax --> ### Description `element-desktop.profile` on openSUSE Tumbleweed fails to start `/usr/bin/element-desktop`. Electron is located at `/usr/bin/electron`. ### Steps to Reproduce 1. [Install **`element-desktop`** from software.opensuse.org](https://software.opensuse.org/package/element-desktop?search_term=element-desktop) 2. Run in bash `LC_ALL=C firejail /usr/bin/element-desktop` ### Expected behavior Application window should open. ### Actual behavior Process exits without opening main window. ### Behavior without a profile <details> <summary>Output of <code>LC_ALL=C firejail --noprofile /usr/bin/element-desktop</code></summary> <p> <!-- If the output is too long to embed it into the comment, create a secret gist at https://gist.github.com/ and link it here. --> ``` Parent pid 15379, child pid 15380 Warning: cannot find /var/run/utmp Child process initialized in 12.43 ms /home/user/.config/Element exists: yes /home/user/.config/Riot exists: no No update_base_url is defined: auto update is disabled Fetching translation json for locale: en_EN Changing application language to en Fetching translation json for locale: en Resetting the UI components after locale change Resetting the UI components after locale change Changing application language to en Fetching translation json for locale: en Resetting the UI components after locale change [2:0727/185125.147277:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018 <Window opens> ``` </p> </details> ### Environment - updated openSUSE Tumbleweed - Firejail v0.9.72 ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [x] The issues is caused by firejail. - [x] I can reproduce the issue without custom modifications. - [x] The program has a profile. - [x] The profile hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues. ### Log <details> <summary>Output of <code>LC_ALL=C firejail /usr/bin/element-desktop</code></summary> <p> ``` Reading profile /etc/firejail/element-desktop.profile Reading profile /etc/firejail/riot-desktop.profile Reading profile /etc/firejail/riot-web.profile Reading profile /etc/firejail/electron.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 9532, child pid 9536 Warning: cannot find /var/run/utmp Warning: skipping Element for private /opt Private /opt installed in 0.10 ms Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning: NVIDIA card detected, nogroups command ignored Warning: NVIDIA card detected, nogroups command ignored Warning: NVIDIA card detected, nogroups command ignored Child process initialized in 193.24 ms [4:0727/183420.166497:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Permission denied Error launching app Unable to find Electron app at /usr/share/element/app Cannot find module '/usr/share/element/app' Parent is shutting down, bye... ``` </p> </details> <details> <summary>Output of <code>LC_ALL=C firejail --debug /usr/bin/element-desktop</code></summary> <p> <!-- If the output is too long to embed it into the comment, create a secret gist at https://gist.github.com/ and link it here. --> [debug_log (link to log)](https://gist.github.com/leukimi/ebd60b4dba8c99000a7efddccdb7a66a) </p> </details>
gitea-mirror 2026-05-05 09:52:39 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kmk3 commented on GitHub (Jul 27, 2024):

Error launching app
Unable to find Electron app at /usr/share/element/app

Cannot find module '/usr/share/element/app'

Does it work with the following in ~/.config/firejail/element-desktop.local?

whitelist /usr/share/element
<!-- gh-comment-id:2254204127 --> @kmk3 commented on GitHub (Jul 27, 2024): > ``` > Error launching app > Unable to find Electron app at /usr/share/element/app > > Cannot find module '/usr/share/element/app' > ``` Does it work with the following in ~/.config/firejail/element-desktop.local? ``` whitelist /usr/share/element ```
Author
Owner

@leukimi commented on GitHub (Jul 28, 2024):

Yes! It worked to do:

echo "whitelist /usr/share/element" > $HOME/.config/firejail/element-desktop.local

The main window now opens as it should.

<!-- gh-comment-id:2254319123 --> @leukimi commented on GitHub (Jul 28, 2024): Yes! It worked to do: `echo "whitelist /usr/share/element" > $HOME/.config/firejail/element-desktop.local` The main window now opens as it should.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3269
No description provided.