flatpak
Tags: packages, desktop, flatpak
Secrets needed: No
Runs on: Desktop group only (skip_flatpak: false)
Installs and manages Flatpak applications from Flathub.
What It Does
- Fixes broken Flatpak symlinks if present
- Adds the Flathub remote
- Removes unwanted system flatpaks (Firefox, Thunderbird — replaced by Zen)
- Installs missing flatpaks in batch (fast path), falling back to individual installs
- Updates all flatpaks when
upgrade: trueis set - Creates Chromium wrapper scripts for CLI compatibility
Package List
Defined in roles/flatpak/vars/main.yml as system_flatpaks (the Flathub remote is in flatpak_remotes, also set in group_vars/all.yml). Key apps:
| App | Flatpak ID |
|---|---|
| Zen Browser | app.zen_browser.zen |
| VS Code | com.visualstudio.code |
| Ungoogled Chromium | com.github.Eloston.UngoogledChromium |
| Flatseal | com.github.tchx84.Flatseal |
| GNOME apps | Calculator, Calendar, Clocks, Contacts, Loupe, etc. |
| Vesktop | dev.vencord.Vesktop |
| Obsidian | md.obsidian.Obsidian |
Wrapper Scripts
Creates ~/.local/bin/chromium, ~/.local/bin/google-chrome, and ~/.local/bin/chromium-browser that exec into the Ungoogled Chromium flatpak — tools that hardcode google-chrome or chromium-browser still work.
Notes
- Installs system-wide (
--system) withbecome: true - Batch install tolerates partial failures — individual retries catch stragglers