Skip to content

Spellcheck inactive after restart when de-DE dictionary cache exists on Linux #34139

Description

@Buntfunk

Steps to reproduce

  1. Make sure Element Desktop is not running:

    pkill -f element-desktop

  2. Remove the local Electron dictionary cache:

    rm -rf ~/.config/Element/Dictionaries

  3. Start Element Desktop.

  4. Type intentionally misspelled German words in a message composer.

  5. Observe that spellcheck works immediately in this session.

  6. Quit Element Desktop completely again:

    pkill -f element-desktop

  7. Verify that Element recreated the dictionary cache:

    find ~/.config/Element -maxdepth 3 -type f ( -name ".bdic" -o -name ".dic" -o -name "*.aff" )

    In my case this shows:

    ~/.config/Element/Dictionaries/de-DE-3-0.bdic

  8. Start Element Desktop again:

    element-desktop

  9. Type the same misspelled German words again - Spellcheck inactive!

system.txt

config.txt

Image

Outcome

Actual result:

After the second start, spellcheck is inactive. Misspelled German words are not underlined.

If I open Settings → Preferences and toggle "Allow spell check" off and on once, spellcheck immediately starts working again.

The problem returns after the next restart.

Additional observation:

The issue only happens when the cached dictionary file exists:

~/.config/Element/Dictionaries/de-DE-3-0.bdic

If I remove the whole dictionary cache before starting Element:

rm -rf ~/.config/Element/Dictionaries

then spellcheck works immediately for that session.

After Element recreates de-DE-3-0.bdic and the app is restarted, the problem returns.

Expected result:

Spellcheck should work immediately after every application start when spellcheck is enabled and de-DE is configured as the spellcheck dictionary.

Operating system

Linux Mint 22.3 / Ubuntu Noble base

Application version

Element Desktop: 1.12.22 Krypto-Version: Rust SDK 0.18.0 (6fe03c1), Vodozemac 0.10.0

How did you install the app?

https://element.io/de/download#linux

Homeserver

yatrix.org

Will you send logs?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ElectronIssues specific to Element DesktopO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MinorImpairs non-critical functionality or suitable workarounds existT-DefectZ-ProductPolishZ-Upstream

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions