[chrome-gnome-shell] Provide news native host app manifest file along with old one.



commit 22ea6ff75c74fc8800dab421867385dafae498a3
Author: Yuri Konotopov <ykonotopov gmail com>
Date:   Sun Jul 31 01:28:45 2016 +0300

    Provide news native host app manifest file along with old one.
    
    Old manifest file will be dropped around version 8.

 CMakeLists.txt                              |    4 ++++
 connector/org.gnome.chrome_gnome_shell.json |    9 +++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5077e77..a9d70ab 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,10 +82,14 @@ endif(BUILD_EXTENSION)
 if(BUILD_CONNECTOR)
        configure_file("${CMAKE_CURRENT_SOURCE_DIR}/connector/io.github.ne0sight.gs_chrome_connector.json"
                        "${CMAKE_BINARY_DIR}/")
+       configure_file("${CMAKE_CURRENT_SOURCE_DIR}/connector/org.gnome.chrome_gnome_shell.json"
+                       "${CMAKE_BINARY_DIR}/")
 
        install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/connector/chrome-gnome-shell.py" DESTINATION 
"${CMAKE_INSTALL_BINDIR}/" RENAME chrome-gnome-shell)
        install(FILES "${CMAKE_BINARY_DIR}/io.github.ne0sight.gs_chrome_connector.json" DESTINATION 
"/etc/chromium/native-messaging-hosts/")
        install(FILES "${CMAKE_BINARY_DIR}/io.github.ne0sight.gs_chrome_connector.json" DESTINATION 
"/etc/opt/chrome/native-messaging-hosts/")
+       install(FILES "${CMAKE_BINARY_DIR}/org.gnome.chrome_gnome_shell.json" DESTINATION 
"/etc/chromium/native-messaging-hosts/")
+       install(FILES "${CMAKE_BINARY_DIR}/org.gnome.chrome_gnome_shell.json" DESTINATION 
"/etc/opt/chrome/native-messaging-hosts/")
        install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/connector/external_extension.json" DESTINATION 
"/usr/share/google-chrome/extensions/" RENAME "${EXTENSION_ID}.json")
        install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/connector/external_extension.json" DESTINATION 
"/usr/share/chromium/extensions/" RENAME "${EXTENSION_ID}.json")
 endif(BUILD_CONNECTOR)
diff --git a/connector/org.gnome.chrome_gnome_shell.json b/connector/org.gnome.chrome_gnome_shell.json
new file mode 100644
index 0000000..0f06ce0
--- /dev/null
+++ b/connector/org.gnome.chrome_gnome_shell.json
@@ -0,0 +1,9 @@
+{
+  "name": "org.gnome.chrome_gnome_shell",
+  "description": "Native connector for extensions.gnome.org",
+  "path": "${CMAKE_INSTALL_FULL_BINDIR}/chrome-gnome-shell",
+  "type": "stdio",
+  "allowed_origins": [
+    "chrome-extension://${EXTENSION_ID}/"
+  ]
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]