build(flatpak): stop compiling the flatpak provider into the app
Removes FlatpakManager from the built-in sources and from MainWindow's registration, so only pacman ships inside the binary. Flatpak is now provided exclusively by the external plugin. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
3 files changed
+3
-11
No files matched your search
+3
-8
@@ -174,19 +174,14 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) {
|
||||
// without this registration the queued connection is dropped silently.
|
||||
qRegisterMetaType<std::vector<PackageInfo>>("std::vector<PackageInfo>");
|
||||
|
||||
// Provider registry: pacman and flatpak ship with the application, extra
|
||||
// providers can be added as plugins at runtime (see the Providers page).
|
||||
// Provider registry: pacman is compiled in; every other provider (Flatpak,
|
||||
// ...) ships as an external plugin loaded at runtime from the plugins/
|
||||
// directories (see the Providers page for details).
|
||||
m_pluginManager = new PluginManager();
|
||||
m_pluginManager->registerBuiltin(
|
||||
{"pacman", "Pacman", "1.0.0",
|
||||
"Gestionnaire de paquets natif d'Arch Linux", "FWS"},
|
||||
new PacmanManager());
|
||||
// The install hint tells the app how to make the provider available when
|
||||
// its tool is missing (flatpak is shipped by the pacman package "flatpak").
|
||||
m_pluginManager->registerBuiltin(
|
||||
{"flatpak", "Flatpak", "1.0.0",
|
||||
"Gestionnaire d'applications Flatpak", "FWS", false, "", false, "flatpak"},
|
||||
new FlatpakManager());
|
||||
m_pluginManager->discoverExternal();
|
||||
|
||||
// Non-owning handle kept for sudo credential handling and pacman logs.
|
||||
|
||||
Reference in new issue
Block a user