summaryrefslogtreecommitdiff
path: root/scp2
diff options
context:
space:
mode:
authorJesús Corrius <jcorrius@gmail.com>2013-08-24 13:55:46 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-08-26 09:23:41 +0000
commitc8b6437fb60e0428d615ca5c4b532f79b721785a (patch)
tree1edb65f718afd89366e30a49016d64e5b859d373 /scp2
parent6cddffbc55bc74202c21af3aeeff0ce46f5022e1 (diff)
Create the AppUserModelID registry values correctly
This commit is a backport from master. The original code is totally broken and creates useless registry values in a wrong place. The corrected patch allows LO to keep track of the MSO file types opened by our application in the shell's "recent documents" list. Change-Id: I5db0a7f166ef73fe21a5f3fc891f86a91e1914d5 Reviewed-on: https://gerrit.libreoffice.org/5603 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'scp2')
-rwxr-xr-xscp2/inc/macros.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/scp2/inc/macros.inc b/scp2/inc/macros.inc
index fa7c350bf9f0..f0ed12a270b7 100755
--- a/scp2/inc/macros.inc
+++ b/scp2/inc/macros.inc
@@ -236,11 +236,12 @@ End
End
#define REGISTRY_ENTRY_APPUSERMODELID(name,modid,doc_type) \
- RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,AppUserModelID) \
+ RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_AppUserModelID) \
ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \
ModuleID = modid; \
- ComponentCondition = "VersionNT >= 600"; \
- Subkey = STRING(AppUserModelID); \
+ ComponentCondition = STRING(VersionNT >= 601); \
+ Subkey = STRING(CONCAT2(LibreOffice.,name)); \
+ Name = STRING(AppUserModelID); \
Value = STRING(CONCAT2(TheDocumentFoundation.LibreOffice.,doc_type)); \
End