cosmic-flatpak-fixer
Restore COSMIC applet metadata that Flatpak strips from exported .desktop files.
The problem
Flatpak 1.18.4+ filters the keys of .desktop files it exports, using an
allowlist. Keys such as X-CosmicApplet, X-OverflowPriority or
X-HostWaylandDisplay are dropped, so the COSMIC panel no longer recognises
Flatpak-installed applets as applets.
cosmic-flatpak-fixer finds installed Flatpak applications that declare
X-CosmicApplet=true and patches their exported .desktop file in place
(replacing the export symlink with a real file) so the COSMIC keys survive.
Patched files carry a # Managed by cosmic-flatpak-fixer marker, which
records the original symlink so clean can restore it.
Do not put these files in
~/.local/share/applications. COSMIC then treats the applet as a normal running app window.
Install
uv tool install cosmic-flatpak-fixer
# or
pipx install cosmic-flatpak-fixer
Usage
cosmic-flatpak-fixer fix --dry-run # show what would be patched
cosmic-flatpak-fixer fix # patch exports of installed COSMIC applets
cosmic-flatpak-fixer clean --dry-run # show what would be restored
cosmic-flatpak-fixer clean # restore exports of applets that were uninstalled
cosmic-flatpak-fixer --version
fixpatches the export for every installed Flatpak whose desktop file hasX-CosmicApplet=true. It also removes legacy overlays previously written to~/.local/share/applications. Run it again after Flatpak updates.cleanrestores Flatpak's original symlink for managed exports whose applet is no longer installed, and removes any leftover legacy overlays.
Both commands search the user ($XDG_DATA_HOME/flatpak, ~/.local/share/flatpak)
and system (/var/lib/flatpak) installations. Re-open the panel settings (or
log out and in) if applets still look wrong afterwards.
Development
uv sync
just check # ruff + pytest
just build # check, then build sdist and wheel into dist/
Releasing
just bump-version minor # or: just set-version 1.0.0 (commits the new version)
git tag "v$(uv version --short)"
just publish # uv publish; token via UV_PUBLISH_TOKEN or keyring
Set UV_PUBLISH_URL=https://test.pypi.org/legacy/ to try TestPyPI first.
License
MIT
Metadata
Release files for cosmic-flatpak-fixer 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cosmic_flatpak_fixer-0.1.1.tar.gz | 8.0 kB | Without provenance | Details for cosmic_flatpak_fixer-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cosmic_flatpak_fixer-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for cosmic_flatpak_fixer-0.1.1-py3-none-any.whl |
Total release size: 19.1 kB
Release files / cosmic_flatpak_fixer-0.1.1.tar.gz
| Download URL | cosmic_flatpak_fixer-0.1.1.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b06a1c1fb118cc76784d8c5b74cf04ce8202b5e72c9dfbc199b5d6e4c15d457
|
|
BLAKE2b-256 checksum How to use checksums |
6b65cab1c31cb590d7c680817bd7fe8396ef02cb15e8d8f814bb5d366fc7b7ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.0
|
Release files / cosmic_flatpak_fixer-0.1.1-py3-none-any.whl
| Download URL | cosmic_flatpak_fixer-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d9b8ad4b2e087c6051b7b9e362b2ead155fb1d358614702db151faffb722245
|
|
BLAKE2b-256 checksum How to use checksums |
5022eafd1273cd88d5083055630478969a545aec5bd32fb15f524867cbccd6eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.0
|
Security for cosmic-flatpak-fixer 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.