From d66c02f386708aef56f7ee2cd73422d2bed04f32 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 20 Sep 2026 19:23:10 +0200 Subject: feat: add file-manager right-click action for PDFs pput.desktop is a DES-EMA action exposing "Upload to Paperless" on the context menu for application/pdf, using %F so a whole selection uploads in one click, not just a single file. It runs pput-gui rather than pput directly: a click has no terminal, so the wrapper reports the outcome through notify-send, falling back to zenity. It also sets PINENTRY_USER_DATA, since pass(1) needs a GUI pinentry when there is no controlling terminal. Exec= calls pput-gui by name rather than by absolute path, matching the other actions in this format and keeping a user's home out of the file. Co-Authored-By: Claude Opus 5 --- pput.desktop | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pput.desktop (limited to 'pput.desktop') diff --git a/pput.desktop b/pput.desktop new file mode 100644 index 0000000..3f8aa60 --- /dev/null +++ b/pput.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Type=Action + +Name=Upload to Paperless +Name[it]=Carica su Paperless +ToolbarLabel=Upload to Paperless +ToolbarLabel[it]=Carica su Paperless + +Icon=document-send +Profiles=profile-zero; + +[X-Action-Profile profile-zero] +MimeTypes=application/pdf; +Exec=pput-gui %F +Name=Default profile +Name[it]=Profilo predefinito -- cgit v1.2.3