aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2026-09-20feat: add file-manager right-click action for PDFsHEADmasterDanilo M.3-0/+83
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 <noreply@anthropic.com>
2026-09-20feat: upload documents to paperless-ngx from the CLIDanilo M.4-0/+553
Single bash script over the paperless REST API. Posts each file to /api/documents/post_document/, then polls /api/tasks/ until the document is consumed, so each file gets a real outcome instead of a task id. The task response needed care: it is a paginated object rather than a bare list, statuses are lowercase, and the outcome lives in result_data as a dict, carrying duplicate_of when paperless rejects re-uploaded content. test_status.sh covers those shapes. Token is read from pass, never passed as an argument. Host, pass entry and timeout are environment-overridable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>