Register openpgp4fpr URI for Kleopatra
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 25 Jun 2018 13:11:22 +0000 (15:11 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 25 Jun 2018 13:11:22 +0000 (15:11 +0200)
* src/inst-kleopatra.nsi: Register kleo for openpgp4fpr.
* src/uninst-kelopatra.nsi: Unregister.

--
This opens keyserver search or details when an openpgp4fpr URI
is clicked. openpgp4fpr is IANA registered.

src/inst-kleopatra.nsi
src/uninst-kleopatra.nsi

index 4b207aa..7cb2500 100644 (file)
@@ -268,6 +268,13 @@ ${MementoSection} "Kleopatra" SEC_kleopatra
   WriteRegStr SHCTX "Software\Gpg4win\kleopatra\Capabilities" "ApplicationIcon" "$INSTDIR\bin\kleopatra.exe,0"
   WriteRegStr SHCTX "Software\Gpg4win\kleopatra\Capabilities" "ApplicationName" "Kleopatra"
 
+
+  # Openpgp4fpr URI scheme
+  WriteRegStr SHCTX "Software\Classes\openpgp4fpr" "" "URL:OpenPGP master key fingerprint"
+  WriteRegStr SHCTX "Software\Classes\openpgp4fpr" "URL Protocol" ""
+  WriteRegStr SHCTX "Software\Classes\openpgp4fpr\DefaultIcon" "" "$INSTDIR\bin\kleopatra.exe,0"
+  WriteRegStr SHCTX "Software\Classes\openpgp4fpr\shell\open\command" "" "$\"$INSTDIR\bin\kleopatra.exe$\" --query $\"%1$\""
+
 !endif
 ${MementoSectionEnd}
 
index 9f445fb..797aaf7 100644 (file)
@@ -229,6 +229,8 @@ Section "-un.kleopatra"
   DeleteRegValue SHCTX "Software\Classes\.crl" "gpg4win.AssocFile.kleopatra.CMS"
   DeleteRegValue SHCTX "Software\Classes\.crl" "gpg4win.AssocFile.kleopatra.CMS"
 
+  DeleteRegKey SHCTX "Software\Classes\openpgp4fpr"
+
   DeleteRegKey /ifempty SHCTX "Software\Classes\.gpg"
   DeleteRegKey /ifempty SHCTX "Software\Classes\.asc"
   DeleteRegKey /ifempty SHCTX "Software\Classes\.pgp"