Skip to content

element-desktop fails to launch in a jail when dbus is disabled #2689

@aral-matrix

Description

@aral-matrix

Steps to reproduce

  1. Where are you starting? What can you see?
env DBUS_SESSION_BUS_ADDRESS=none firejail --noprofile --private=~/.firejail element-desktop

-> element-desktop launches, but fails to recognize the active session:
Failed to load database
Clear data and reload?
Unable to access secret from system keyring, it appears to have changed.

  1. What do you click?

If this dialog is confirmed with "yes", it wipes the active session from the jail and still fails to launch. Selecting "No" will of course terminate the application

  1. More steps…

Starting element-desktop without disabling DBUS works fine:

firejail --noprofile --private=~/.firejail element-desktop

Using DBUS is not a solution, because DBUS itself is a security liability, in that it allows a jailed application to access services outside the jail - and additionally, when file dialogues are concerned, it creates an intransparency for the user as to whether a jailed application sees their home folder only thanks to DBUS, or whether they (accidentally) launched the application outside a jail.

Element-desktop worked fine without DBUS until ca. 1 1/2 years ago, and then the changed authentication system broke that. Please reimplement support that does not require DBUS.

Outcome

What did you expect?

I expect element to launch without dbus

What happened instead?

Element fails to launch without dbus

Operating system

Linux 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64 GNU/Linux

Application version

Element version: 1.12.3

How did you install the app?

packages.element.io/debian

Homeserver

matrix.org

Will you send logs?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AuthenticationA-ElectronA-StorageStorage layer of the app, including IndexedDB, local storage, etc.O-UncommonMost users are unlikely to come across this or unexpected workflowS-CriticalPrevents work, causes data loss and/or has no workaroundT-DefectZ-LinuxZ-Upstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions