pdfcraft/packaging/linux
Dmitriy Bunakalya dc356f0dfc
Linux: accept file:// URI args so desktop launchers recognise pdfcraft as PDF default (#382)
* Linux: accept file:// URI args so desktop launchers recognise pdfcraft as PDF default

GNOME Files (and other freedesktop-spec launchers) only register an app as the
default handler for a mimetype if its .desktop Exec accepts URIs (%u/%U), not
just paths (%F). pdfcraft's entry used %F, so even after `xdg-mime default
ai.storyteller.pdfcraft.desktop application/pdf`, double-clicking a PDF in
Files silently fell back to another installed viewer.

Switch Exec to %u and decode file:// args back to plain paths in main.rs
before they reach the rest of the app, which only ever opens paths. Other
schemes and plain CLI paths pass through unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* path_from_arg: file://localhost, foreign hosts left alone, Windows drive paths, no indexing; Exec %U (several files)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Dmitriy Bunakalya <dmitriy.bunakalya@appfollow.io>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-08 20:04:27 -04:00
..
flatpak Release: Flatpak bundles, AppImage zsync updates, README Downloads (#275) 2026-10-08 09:58:13 -04:00
ai.storyteller.pdfcraft.desktop Linux: accept file:// URI args so desktop launchers recognise pdfcraft as PDF default (#382) 2026-10-08 20:04:27 -04:00
ai.storyteller.pdfcraft.metainfo.xml.in Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
ai.storyteller.pdfcraft.mime.xml Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
flatpak-bundle.sh Release: Flatpak bundles, AppImage zsync updates, README Downloads (#275) 2026-10-08 09:58:13 -04:00
nfpm.yaml Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
package.sh Release: Flatpak bundles, AppImage zsync updates, README Downloads (#275) 2026-10-08 09:58:13 -04:00
postinst.sh Signed release pipeline (macOS/Windows/Linux/Web); README community note 2026-10-02 12:06:19 -04:00