summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld@sommerfeld.dev>2026-08-14 14:21:05 +0100
committersommerfeld <sommerfeld@sommerfeld.dev>2026-08-14 14:21:05 +0100
commitccbe17845c579d32a994035bfc153d606a9e8a42 (patch)
treea141a650cc33f5104f9a3f8da040083450397be4
parent7b2df3a60ae12e8225ccf6785a5b7e3219b025cb (diff)
downloaddotfiles-ccbe17845c579d32a994035bfc153d606a9e8a42.tar.gz
dotfiles-ccbe17845c579d32a994035bfc153d606a9e8a42.tar.bz2
dotfiles-ccbe17845c579d32a994035bfc153d606a9e8a42.zip
Fix Flatpak PDF handoff
-rw-r--r--.chezmoiignore3
-rw-r--r--dot_config/mimeapps.list6
-rw-r--r--dot_local/share/applications/org.pwmt.zathura.desktop10
3 files changed, 19 insertions, 0 deletions
diff --git a/.chezmoiignore b/.chezmoiignore
index 997ca33..01c4d9c 100644
--- a/.chezmoiignore
+++ b/.chezmoiignore
@@ -18,3 +18,6 @@ just-lib.sh
selene.toml
selene-globals.yml
dot_config/nvim/nvim-pack-lock.json
+{{ if ne (default "host" (index . "machineRole")) "host" }}
+.local/share/applications/org.pwmt.zathura.desktop
+{{ end }}
diff --git a/dot_config/mimeapps.list b/dot_config/mimeapps.list
index 79ed4ed..ab2f7e2 100644
--- a/dot_config/mimeapps.list
+++ b/dot_config/mimeapps.list
@@ -95,6 +95,8 @@ application/x-extension-ics=org.mozilla.thunderbird.desktop
x-scheme-handler/webcals=org.mozilla.thunderbird.desktop
[Added Associations]
+application/pdf=org.pwmt.zathura.desktop;
+application/postscript=org.pwmt.zathura.desktop;
x-scheme-handler/http=io.gitlab.librewolf-community.desktop;
x-scheme-handler/https=io.gitlab.librewolf-community.desktop;
x-scheme-handler/chrome=io.gitlab.librewolf-community.desktop;
@@ -109,3 +111,7 @@ x-scheme-handler/mailto=org.mozilla.thunderbird.desktop;
x-scheme-handler/mid=org.mozilla.thunderbird.desktop;
x-scheme-handler/webcal=org.mozilla.thunderbird.desktop;
x-scheme-handler/webcals=org.mozilla.thunderbird.desktop;
+
+[Removed Associations]
+application/pdf=org.pwmt.zathura-pdf-poppler.desktop;
+application/postscript=org.pwmt.zathura-ps.desktop;
diff --git a/dot_local/share/applications/org.pwmt.zathura.desktop b/dot_local/share/applications/org.pwmt.zathura.desktop
new file mode 100644
index 0000000..f8b0a70
--- /dev/null
+++ b/dot_local/share/applications/org.pwmt.zathura.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=Zathura
+Comment=Document Viewer
+Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=zathura --file-forwarding org.pwmt.zathura @@u %U @@
+Icon=org.pwmt.zathura
+Terminal=false
+Categories=Office;Viewer;
+MimeType=application/pdf;application/postscript;
+X-Flatpak=org.pwmt.zathura