<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - GnuPG / OpenPGP keys not found on macOS unless from command line"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=115538#c27">Comment # 27</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - GnuPG / OpenPGP keys not found on macOS unless from command line"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=115538">bug 115538</a>
from <span class="vcard"><a class="email" href="mailto:johan.havermans@gmail.com" title="Johan Havermans <johan.havermans@gmail.com>"> <span class="fn">Johan Havermans</span></a>
</span></b>
<pre>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
<a href="https://apple.stackexchange.com/questions/51677/how-to-set-path-for-finder-launched-applications">https://apple.stackexchange.com/questions/51677/how-to-set-path-for-finder-launched-applications</a>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>