Skip to content

feat: live language switching and desktop entries for installed apps - #46

Merged
MotherSphere merged 1 commit into
mainfrom
feat/hot-language-and-desktop-entries
Jul 20, 2026
Merged

feat: live language switching and desktop entries for installed apps#46
MotherSphere merged 1 commit into
mainfrom
feat/hot-language-and-desktop-entries

Conversation

@MotherSphere

Copy link
Copy Markdown
Member

Contexte (audit 2026-07-20, P2 - lots restants 1/2)

  1. Langue à chaud - le changement de langue exigeait un restart (OnceLock). Locale en RwLock + set_language() : chaque vue appelant t() par render, toute l'UI se re-labelle à la frame suivante. Clé de notice restart supprimée (morte), et la section Security reçoit son nom localisé (elle était arrivée sans).
  2. Entrées .desktop (Linux) - les apps installées par le store sont maintenant indexées par l'environnement de bureau (rofi/wofi/GNOME/KDE), avec l'icône cachée quand présente. Taguées X-Colony-Managed que le scan de Colony ignore (l'app a déjà sa carte store - sinon doublon), retirées à l'uninstall, best-effort (un échec d'entrée ne fait jamais échouer l'install).

Validation

104 tests verts, clippy 0, fmt OK.

- Switching the language no longer demands a restart: the locale moves
  from a OnceLock to a RwLock with set_language(), and since every view
  calls t() per render the whole UI re-labels on the next frame. The
  now-dead restart-notice key is removed, and the Security sidebar
  section gets its localized display name (it landed without one).
- Installed store apps now get a .desktop launcher entry (Linux), so
  rofi/wofi/GNOME/KDE index them like any other application - with the
  cached app icon when present. Entries are tagged X-Colony-Managed,
  which Colony's own scan skips (the app is already represented by its
  store card - a local duplicate would show it twice), and uninstall
  removes the entry. Best-effort: a desktop-entry failure never fails
  an otherwise complete install.
@MotherSphere
MotherSphere merged commit 2931f36 into main Jul 20, 2026
1 of 3 checks passed
@MotherSphere
MotherSphere deleted the feat/hot-language-and-desktop-entries branch July 20, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant