docs: describe installing flatpak files
The gesture is invisible in a screenshot, so every place that has to match it says it explicitly: the READMEs, the manual desktop entry (which now carries the MIME types too), the installer doc, the interface and plugin contracts, the troubleshooting page and the test coverage. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
8 files changed
+56
-9
No files matched your search
+4
-2
@@ -11,6 +11,7 @@ Package manager for **Arch Linux** based on **pacman**, with a Qt6 graphical int
|
||||
- 🧹 **Cleanup**: orphan and legacy packages, cache trimming
|
||||
- 📋 **History of all actions**
|
||||
- 🧩 **Plugins**: package managers (pacman built-in, **Flatpak shipped by default**) and **extensions** written in C++ (UI addons, helpers, …)
|
||||
- 📥 **Flatpak files**: drop a `.flatpakref`, `.flatpakrepo` or `.flatpak` onto the window (or right-click → **Open with PacManager** in your file manager) to install it directly
|
||||
|
||||
## Architecture
|
||||
|
||||
@@ -137,11 +138,12 @@ Type=Application
|
||||
Name=PacManager
|
||||
GenericName=Package Manager
|
||||
Comment=Package manager for Arch Linux
|
||||
Exec=$HOME/.local/bin/PacManager
|
||||
Exec=$HOME/.local/bin/PacManager %U
|
||||
Icon=org.fws.PacManager
|
||||
Terminal=false
|
||||
Categories=System;Utility;Qt;
|
||||
Keywords=package;pacman;flatpak;install;update;
|
||||
MimeType=application/vnd.flatpak.ref;application/vnd.flatpak.repo;application/vnd.flatpak;
|
||||
StartupNotify=true
|
||||
EOF
|
||||
update-desktop-database ~/.local/share/applications
|
||||
@@ -274,7 +276,7 @@ Search queries **all active providers at once**: every result shows its origin i
|
||||
|
||||
### Adding a plugin
|
||||
|
||||
**Pacman** is **built-in** (compiled into the application); **Flatpak** is an **external plugin** loaded at runtime from `plugins/` (`plugins/flatpak-provider`), next to the executable or in `~/.local/share/PacManager/plugins/`, and **built by default** (`FWS_BUILD_FLATPAK_PLUGIN=ON`). Flatpak installs auto-add the flathub remote when missing and fall back to a **per-user** install (no password) when the system-wide install fails (polkit, homonymous remotes) — the real error is shown on failure. An app installed via Flatpak appears immediately in the desktop launcher: its `.desktop` entries and icons are linked into `~/.local/share/applications` and `~/.local/share/icons` (the XDG dirs scanned by **every** environment: wofi, GNOME, KDE…), exactly like a pacman install, and are removed again on uninstall. Search shows the real status of each app (Installed / Update available). This is covered by an **integration test** that drives the real flatpak CLI (install, list, update, search, uninstall).
|
||||
**Pacman** is **built-in** (compiled into the application); **Flatpak** is an **external plugin** loaded at runtime from `plugins/` (`plugins/flatpak-provider`), next to the executable or in `~/.local/share/PacManager/plugins/`, and **built by default** (`FWS_BUILD_FLATPAK_PLUGIN=ON`). Flatpak installs auto-add the flathub remote when missing and fall back to a **per-user** install (no password) when the system-wide install fails (polkit, homonymous remotes) — the real error is shown on failure. An app installed via Flatpak appears immediately in the desktop launcher: its `.desktop` entries and icons are linked into `~/.local/share/applications` and `~/.local/share/icons` (the XDG dirs scanned by **every** environment: wofi, GNOME, KDE…), exactly like a pacman install, and are removed again on uninstall. Search shows the real status of each app (Installed / Update available). A **Flatpak file** can also be installed directly, without going through search: drop it on the window or pick **Open with PacManager** in the file manager (`.flatpakref` and `.flatpak` start an install, `.flatpakrepo` registers the remote under the file's name). This is covered by an **integration test** that drives the real flatpak CLI (install, list, update, search, uninstall).
|
||||
|
||||
**Adding a provider** (apt, dnf, zypper, or another distro's repos) without touching the application:
|
||||
|
||||
|
||||
Reference in new issue
Block a user