[Libreoffice-commits] core.git: scp2/inc
skswales
stuart.swales.croftnuisk at gmail.com
Thu Jun 23 09:56:38 UTC 2016
scp2/inc/macros.inc | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
New commits:
commit 8ab7db320ff158949d2eadaa6e654115201ddf61
Author: skswales <stuart.swales.croftnuisk at gmail.com>
Date: Thu Jun 2 23:58:50 2016 +0100
tdf#97872 File association in Windows registry
Fix for double backslashes in paths to programs in shell/open etc.
registry entries for all non-native file types such as .doc that are
mapped by installer to use scalc.exe/swriter.exe etc.
Change-Id: Ice8033d4fee079c0fb6d8f84e00ebd784e85d135
Reviewed-on: https://gerrit.libreoffice.org/25849
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: jan iversen <jani at documentfoundation.org>
diff --git a/scp2/inc/macros.inc b/scp2/inc/macros.inc
index 7b895b6..30f6760 100644
--- a/scp2/inc/macros.inc
+++ b/scp2/inc/macros.inc
@@ -298,7 +298,7 @@ End
Value = STRING(default); \
End
-#define REGISTRY_ENTRY_NEW_CMD(name,modid,app) \
+#define REGISTRY_ENTRY_NEW_CMD_PPA(name,modid,progpath_program_app) \
RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Shell_New) \
ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \
ModuleID = modid; \
@@ -309,33 +309,45 @@ End
ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \
ModuleID = modid; \
Subkey = STRING(CONCAT3(LibreOffice.,name,\shell\new\command)); \
- Value = "\"<progpath>\program\\" STRING(app) "\" -n \"%1\""; \
+ Value = "\"" STRING(progpath_program_app) "\" -n \"%1\""; \
End
-#define REGISTRY_ENTRY_OPEN_CMD(name,modid,app) \
+#define REGISTRY_ENTRY_NEW_CMD(name,modid,app) \
+ REGISTRY_ENTRY_NEW_CMD_PPA(name,modid,<progpath>\program\app)
+
+#define REGISTRY_ENTRY_OPEN_CMD_PPA(name,modid,progpath_program_app) \
RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Shell_Open_Command) \
ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \
ModuleID = modid; \
Subkey = STRING(CONCAT3(LibreOffice.,name,\shell\open\command)); \
- Value = "\"<progpath>\program\\" STRING(app) "\" -o \"%1\""; \
+ Value = "\"" STRING(progpath_program_app) "\" -o \"%1\""; \
End
-#define REGISTRY_ENTRY_PRINT_CMD(name,modid,app) \
+#define REGISTRY_ENTRY_OPEN_CMD(name,modid,app) \
+ REGISTRY_ENTRY_OPEN_CMD_PPA(name,modid,<progpath>\program\app)
+
+#define REGISTRY_ENTRY_PRINT_CMD_PPA(name,modid,progpath_program_app) \
RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Shell_Print_Command) \
ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \
ModuleID = modid; \
Subkey = STRING(CONCAT3(LibreOffice.,name,\shell\print\command)); \
- Value = "\"<progpath>\program\\" STRING(app) "\" -p \"%1\""; \
+ Value = "\"" STRING(progpath_program_app) "\" -p \"%1\""; \
End
-#define REGISTRY_ENTRY_PRINTTO_CMD(name,modid,app) \
+#define REGISTRY_ENTRY_PRINT_CMD(name,modid,app) \
+ REGISTRY_ENTRY_PRINT_CMD_PPA(name,modid,<progpath>\program\app)
+
+#define REGISTRY_ENTRY_PRINTTO_CMD_PPA(name,modid,progpath_program_app) \
RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_Shell_Printto_Command) \
ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \
ModuleID = modid; \
Subkey = STRING(CONCAT3(LibreOffice.,name,\shell\printto\command)); \
- Value = "\"<progpath>\program\\" STRING(app) "\" -pt \"%2\" \"%1\""; \
+ Value = "\"" STRING(progpath_program_app) "\" -pt \"%2\" \"%1\""; \
End
+#define REGISTRY_ENTRY_PRINTTO_CMD(name,modid,app) \
+ REGISTRY_ENTRY_PRINTTO_CMD_PPA(name,modid,<progpath>\program\app)
+
#define REGISTRY_ENTRY_CAPABILITIES(name,modid,key,doc_type) \
RegistryItem CONCAT2(gid_Regitem_Software_Manufacturer_Productname_Productversion_Capabilities_FileAssociations_,name) \
ParentID = PREDEFINED_HKEY_LOCAL_MACHINE; \
More information about the Libreoffice-commits
mailing list