[chrome-gnome-shell] Force install extension using Chrome managed policies.
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell] Force install extension using Chrome managed policies.
- Date: Sat, 20 Aug 2016 20:39:51 +0000 (UTC)
commit ff000fe4504312df2e66ac7ea95b405bc8b98015
Author: Yuri Konotopov <ykonotopov gmail com>
Date: Sat Aug 20 23:39:35 2016 +0300
Force install extension using Chrome managed policies.
CMakeLists.txt | 7 +++++--
connector/external_extension.json | 3 ---
policies/chrome-gnome-shell.json | 5 +++++
3 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 651f011..8b38f16 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -142,6 +142,8 @@ if(BUILD_CONNECTOR)
"${CMAKE_BINARY_DIR}/")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/connector/org.gnome.chrome_gnome_shell.json"
"${CMAKE_BINARY_DIR}/")
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/policies/chrome-gnome-shell.json"
+ "${CMAKE_BINARY_DIR}/")
install(CODE "
if(DEFINED ENV{DESTDIR})
@@ -158,8 +160,8 @@ if(BUILD_CONNECTOR)
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 "${CHROME_EXTENSION_ID}.json")
- install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/connector/external_extension.json" DESTINATION
"/usr/share/chromium/extensions/" RENAME "${CHROME_EXTENSION_ID}.json")
+ install(FILES "${CMAKE_BINARY_DIR}/chrome-gnome-shell.json" DESTINATION
"/etc/opt/chrome/policies/managed/")
+ install(FILES "${CMAKE_BINARY_DIR}/chrome-gnome-shell.json" DESTINATION
"/etc/chromium/policies/managed/")
# There is wrong patch in FreeBSD that forces Chromium to look into
# /usr/local/etc/chrome/native-messaging-hosts for native messaging host manifest.
@@ -167,6 +169,7 @@ if(BUILD_CONNECTOR)
if(CMAKE_SYSTEM_NAME MATCHES "DragonFly.*|FreeBSD")
install(FILES "${CMAKE_BINARY_DIR}/io.github.ne0sight.gs_chrome_connector.json" DESTINATION
"/usr/local/etc/chrome/native-messaging-hosts/")
install(FILES "${CMAKE_BINARY_DIR}/org.gnome.chrome_gnome_shell.json" DESTINATION
"/usr/local/etc/chrome/native-messaging-hosts/")
+ install(FILES "${CMAKE_BINARY_DIR}/chrome-gnome-shell.json" DESTINATION
"/usr/local/etc/chrome/policies/managed/")
endif(CMAKE_SYSTEM_NAME MATCHES "DragonFly.*|FreeBSD")
endif(BUILD_CONNECTOR)
diff --git a/policies/chrome-gnome-shell.json b/policies/chrome-gnome-shell.json
new file mode 100644
index 0000000..049db2b
--- /dev/null
+++ b/policies/chrome-gnome-shell.json
@@ -0,0 +1,5 @@
+{
+ "ExtensionInstallForcelist": [
+ "${CHROME_EXTENSION_KEY};https://clients2.google.com/service/update2/crx"
+ ]
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]