[Libreoffice-bugs] [Bug 115538] GnuPG / OpenPGP keys not found on macOS unless from command line
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Jan 25 12:59:48 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=115538
--- Comment #27 from Johan Havermans <johan.havermans at gmail.com> ---
I think I found a work around that enable LibreOffice version 6.1.4.2 on Mac OS
High Sierra to find my PGO key and sign a document. It is still a bug of course
when I update LO. My work around is inspired by
https://apple.stackexchange.com/questions/51677/how-to-set-path-for-finder-launched-applications
First, my Mac PGO tools are installed in:
/usr/local/MacGPG2/bin
This path also is shown when doing echo $PATH in Terminal.app
Here is what I did:
Step 1: Close LibreOffice and open in your text editor
/Applications/LibreOffice.app/Contents/Info.plist
Step 2: Just above the line
<key>CFBundleExecutable</key>
I added:
<key>LSEnvironment</key>
<dict>
<key>PATH</key>
<string>/usr/local/MacGPG2/bin:</string>
</dict>
Step 3: Save the info.plist
Step 4: Open Terminal.app and execute
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister
-v -f /Applications/LibreOffice.app
Step 5: Launch LO
Go to LO/Preferences/User Data, and you can select your PGP signing key from
the drop down list. When you create a Writer document, and digitally sign it,
you can do that too.
Hope this helps to fix this bug upstream
Johan
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190125/a3916063/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list