add(flatpak): some auto-installation on .flatpak extension.

will remain unused for now...
This commit is contained in:
kenji
2026-05-24 22:35:33 -05:00
parent 8c5200d2fb
commit 8c43b183eb
2 changed files with 26 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
{pkgs, ...}: let
flatpak-install = pkgs.writeShellScriptBin "flatpak-install" ''
flatpak install --user --bundle "$1"
echo
read -p "Press Enter to close..."
'';
in {
home.packages = [flatpak-install];
xdg.mimeApps = {
enable = true;
defaultApplications = {
"application/vnd.flatpak" = "flatpak-bundle-installer.desktop";
};
};
xdg.desktopEntries.flatpak-bundle-installer = {
name = "Flatpak Bundle Installer";
exec = "flatpak-install %f";
terminal = true;
noDisplay = true;
type = "Application";
mimeType = ["application/vnd.flatpak"];
};
}