Bug 490337 - Allow to get PDF passwords from a org.freedesktop.secrets service
Summary: Allow to get PDF passwords from a org.freedesktop.secrets service
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 24.05.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-16 05:51 UTC by yan12125
Modified: 2024-07-17 20:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yan12125 2024-07-16 05:51:35 UTC
SUMMARY

Currently, Okular appears to get possible PDF passwords from KWallet [1]. Do you consider accepting a patch to use org.freedesktop.secrets?

[1] https://invent.kde.org/graphics/okular/-/blob/v24.05.2/part/part.cpp#L1435

STEPS TO REPRODUCE
1. Open an encrypted PDF file

OBSERVED RESULT
Okular tries to get passwords from KWallet

EXPECTED RESULT
Okular tries to get passwords from from a org.freedesktop.secrets service

SOFTWARE/OS VERSIONS
Arch Linux with LXQt
KDE Frameworks Version: 6.3
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Apparently KWallet also provides the org.freedesktop.secrets interface. I think the feature can be implemented by replacing KWallet-related codes with something using org.freedesktop.secrets (ex: QtKeychain)?
Comment 1 Albert Astals Cid 2024-07-16 21:59:47 UTC
Why?
Comment 2 yan12125 2024-07-17 13:59:53 UTC
Ah, I forgot the main point: I use neither KDE nor kwalletd. Instead, I use KeePassXC as a cross-platform solution to manage all my secrets. That program also provides org.freedesktop.secrets service like kwalletd. If Okular supports org.freedesktop.secrets, I can just use KeePassXC instead of setting up another secrets service for PDF passwords.
Comment 3 Albert Astals Cid 2024-07-17 20:19:56 UTC
Ok, i guess that makes some sense, I wouldnt' be against such feature.