summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasad Kumar2018-04-18 14:43:50 -0400
committerPrasad Kumar2018-04-18 14:43:50 -0400
commit151ef2d7aa94ab6f26a804c9816de4e1fbc8924c (patch)
tree5bdd9acd946c305eab327a8dc5d49f7500cc673c
downloadaur-151ef2d7aa94ab6f26a804c9816de4e1fbc8924c.tar.gz
Initial Commit
-rw-r--r--.SRCINFO43
-rw-r--r--Excel.desktop11
-rw-r--r--Excel.pngbin0 -> 94245 bytes
-rw-r--r--MSOffice.desktop11
-rw-r--r--MSOffice.pngbin0 -> 97118 bytes
-rw-r--r--OneNote.desktop11
-rw-r--r--OneNote.pngbin0 -> 91750 bytes
-rw-r--r--Outlook.desktop11
-rw-r--r--Outlook.pngbin0 -> 97884 bytes
-rw-r--r--PKGBUILD129
-rw-r--r--PowerPoint.desktop11
-rw-r--r--PowerPoint.pngbin0 -> 93203 bytes
-rw-r--r--WebSkype.desktop11
-rw-r--r--WebSkype.pngbin0 -> 111826 bytes
-rw-r--r--Word.desktop11
-rw-r--r--Word.pngbin0 -> 95078 bytes
-rwxr-xr-xms-office-online52
-rw-r--r--settings.json23
18 files changed, 324 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..d1e3c7e7fca4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,43 @@
+pkgbase = ms-office-online
+ pkgdesc = Microsoft Office Suite Online
+ pkgver = 2018.04
+ pkgrel = 1
+ url = https://www.office.com/
+ arch = any
+ license = custom
+ depends = jade-application-kit
+ source = Excel.desktop
+ source = Excel.png
+ source = MSOffice.desktop
+ source = ms-office-online
+ source = MSOffice.png
+ source = OneNote.desktop
+ source = OneNote.png
+ source = Outlook.desktop
+ source = Outlook.png
+ source = PowerPoint.desktop
+ source = PowerPoint.png
+ source = settings.json
+ source = WebSkype.desktop
+ source = WebSkype.png
+ source = Word.desktop
+ source = Word.png
+ sha512sums = 330f57c0f708f61eff71afaa4c2016853437f378c4a907638b379c6d8825ec0775ce7687309fbe1942b950dc4fde4ddb899b4f1cbe1ec5478848e657c0f2d9de
+ sha512sums = 6fecce6d345d782f89c7b125e107548590775c21b81456d9e789ffcc1bb61640bcd51287939bf26ad71d73da78a2a12cfb7d75ce3e866ac91b489fcfe20618b9
+ sha512sums = d1806d9fe7fbe12bda780d0b2827fb0ba0c93696e10d7b9beb1078b0944f9b327acf8423c842eb61803bc955f9d3923b24eb85b053e416729a246f141504682a
+ sha512sums = a96c27e79d8e5d1fe0f51e4668e03122c55fabb8f2bb7884e693a721275b9207cc54ee616eb9b70d55caa0ffbecd65066b45481d28476062d96e58ee22c92ecc
+ sha512sums = e497521933f90306307a03fb9738f0dc501082b923592b26f6b3b31970b83a97007e3e63490a31e4b2e4aec1ea466440ff5ce26e6064de06bb9ffbb45b932482
+ sha512sums = 6bf4b6ac6df32bbcdca2558f4b5bd3a82524cd5dfb471675c0547bb6971f1c00e2882b6801176ca1fa2eb186dc9c0d618ee3910d0a48a6aed6b9dc48d5871f3a
+ sha512sums = 8df959cb21bdde875ca1334af474d296d71bf43042d92b4f19e6f03b4ee186b9b99309b3926b01e460a69bd5869c4a6bdea1008fafda92db4d88e81914dbe619
+ sha512sums = ad238a8d0c4136dd98dbf06f6e47a88acb226b99d1e503a11eb1935ecaefa4d26cc325a4d5a622eb929cc4fc5e1cdf2c29c1c13df9d2b2bccd9de9565d707d05
+ sha512sums = d04f4ebbd3b05f6eca30df6e468a68f3e4972b50f58585699ac49d684e533e72f05704b666c2a3c573cbe9aaecc0519a78b872f67ad9c7ed25999fe5b6a475bd
+ sha512sums = d8bb50964fe1e46b66089531a24285e994cd3fcb553c6dce09dfa045879190361c1ecee98fdf979d3d1f6939864169413220e7adb4df6b997f22de75346cf9fa
+ sha512sums = c28940c7f89241b85ea1117960297ea90d7921e0013a809f7442f1b311e7e764b536b6ae19263d5580d9de130ee7d734b9dc9fcdfe0fe612f2be8f675be6a6d0
+ sha512sums = c058c96fc9dbd020aed9b9076c3c846111fc001f9955ad6554cf5f9788a9348935f4699bbe8fcf720af3daf6f472bb892061d25d9dbced8eef75be2eee4b8a4c
+ sha512sums = 8e05505d5759f3e5fc73e02b0882a7c9781e3ceaaa68d1480ee13f492f4b8f517f3ed5a574dfefffa34cd58f5614b8981508665c6a4880fdcffedbdf8f69775d
+ sha512sums = 704f86a2b61dbb9bf578c13457c907b45b49a4ae6ca9d9ff7568d5527515f13664092552d1fbe3a4765151cff1cb6517e2f3c928f3e89ae347e8020b660c0898
+ sha512sums = 0864a208b2f8752a430f247aad4a6b7509e09678692559f8ef69eee3ce1c378e4d1233c9ed442819e8be4617d9b4f41c8300d290d202f86d6011100b22a0bb63
+ sha512sums = 87c94eed8bbbcbe5625ac75135e825a9b1509276877bff0ac1f610269bb371cb5bac268b5bb5e07b6ad0629f7007b1936b04faea0a6c7ca080c26b631a986d40
+
+pkgname = ms-office-online
+
diff --git a/Excel.desktop b/Excel.desktop
new file mode 100644
index 000000000000..bcce7ce21cfd
--- /dev/null
+++ b/Excel.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=/usr/share/icons/ms-office/Excel.png
+Type=Application
+Categories=Office;
+Exec=excel
+Name=Microsoft Excel Online
+GenericName=Excel
+GenericName[en]=Excel
+StartupNotify=true
diff --git a/Excel.png b/Excel.png
new file mode 100644
index 000000000000..d974b55b2dee
--- /dev/null
+++ b/Excel.png
Binary files differ
diff --git a/MSOffice.desktop b/MSOffice.desktop
new file mode 100644
index 000000000000..1bd9a703d226
--- /dev/null
+++ b/MSOffice.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=/usr/share/icons/ms-office/MSOffice.png
+Type=Application
+Categories=Office;
+Exec=msoffice
+Name=Microsoft Office Online
+GenericName=Office
+GenericName[en]=Office
+StartupNotify=true
diff --git a/MSOffice.png b/MSOffice.png
new file mode 100644
index 000000000000..27e4c694c38a
--- /dev/null
+++ b/MSOffice.png
Binary files differ
diff --git a/OneNote.desktop b/OneNote.desktop
new file mode 100644
index 000000000000..f43b43f281df
--- /dev/null
+++ b/OneNote.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=/usr/share/icons/ms-office/OneNote.png
+Type=Application
+Categories=Office;
+Exec=onenote
+Name=Microsoft OneNote Online
+GenericName=OneNote
+GenericName[en]=OneNote
+StartupNotify=true
diff --git a/OneNote.png b/OneNote.png
new file mode 100644
index 000000000000..0022c5685112
--- /dev/null
+++ b/OneNote.png
Binary files differ
diff --git a/Outlook.desktop b/Outlook.desktop
new file mode 100644
index 000000000000..57599e648bb8
--- /dev/null
+++ b/Outlook.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=/usr/share/icons/ms-office/Outlook.png
+Type=Application
+Categories=Office;
+Exec=outlook
+Name=Microsoft Outlook Online
+GenericName=Outlook
+GenericName[en]=Outlook
+StartupNotify=true
diff --git a/Outlook.png b/Outlook.png
new file mode 100644
index 000000000000..68f1c4f6e1b2
--- /dev/null
+++ b/Outlook.png
Binary files differ
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..d63b3e26770d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,129 @@
+# Maintainer: Prasad Kumar
+# Contributor: Philip Müller <philm@manjaro.org>
+pkgname=ms-office-online
+pkgver=2018.04
+pkgrel=1
+pkgdesc="Microsoft Office Suite Online"
+arch=('any')
+url="https://www.office.com/"
+license=('custom')
+depends=('jade-application-kit') #change to jade-application-kit-git if required
+source=('Excel.desktop'
+ 'Excel.png'
+ 'MSOffice.desktop'
+ 'ms-office-online'
+ 'MSOffice.png'
+ 'OneNote.desktop'
+ 'OneNote.png'
+ 'Outlook.desktop'
+ 'Outlook.png'
+ 'PowerPoint.desktop'
+ 'PowerPoint.png'
+ 'settings.json'
+ 'WebSkype.desktop'
+ 'WebSkype.png'
+ 'Word.desktop'
+ 'Word.png')
+sha512sums=('330f57c0f708f61eff71afaa4c2016853437f378c4a907638b379c6d8825ec0775ce7687309fbe1942b950dc4fde4ddb899b4f1cbe1ec5478848e657c0f2d9de'
+ '6fecce6d345d782f89c7b125e107548590775c21b81456d9e789ffcc1bb61640bcd51287939bf26ad71d73da78a2a12cfb7d75ce3e866ac91b489fcfe20618b9'
+ 'd1806d9fe7fbe12bda780d0b2827fb0ba0c93696e10d7b9beb1078b0944f9b327acf8423c842eb61803bc955f9d3923b24eb85b053e416729a246f141504682a'
+ 'a96c27e79d8e5d1fe0f51e4668e03122c55fabb8f2bb7884e693a721275b9207cc54ee616eb9b70d55caa0ffbecd65066b45481d28476062d96e58ee22c92ecc'
+ 'e497521933f90306307a03fb9738f0dc501082b923592b26f6b3b31970b83a97007e3e63490a31e4b2e4aec1ea466440ff5ce26e6064de06bb9ffbb45b932482'
+ '6bf4b6ac6df32bbcdca2558f4b5bd3a82524cd5dfb471675c0547bb6971f1c00e2882b6801176ca1fa2eb186dc9c0d618ee3910d0a48a6aed6b9dc48d5871f3a'
+ '8df959cb21bdde875ca1334af474d296d71bf43042d92b4f19e6f03b4ee186b9b99309b3926b01e460a69bd5869c4a6bdea1008fafda92db4d88e81914dbe619'
+ 'ad238a8d0c4136dd98dbf06f6e47a88acb226b99d1e503a11eb1935ecaefa4d26cc325a4d5a622eb929cc4fc5e1cdf2c29c1c13df9d2b2bccd9de9565d707d05'
+ 'd04f4ebbd3b05f6eca30df6e468a68f3e4972b50f58585699ac49d684e533e72f05704b666c2a3c573cbe9aaecc0519a78b872f67ad9c7ed25999fe5b6a475bd'
+ 'd8bb50964fe1e46b66089531a24285e994cd3fcb553c6dce09dfa045879190361c1ecee98fdf979d3d1f6939864169413220e7adb4df6b997f22de75346cf9fa'
+ 'c28940c7f89241b85ea1117960297ea90d7921e0013a809f7442f1b311e7e764b536b6ae19263d5580d9de130ee7d734b9dc9fcdfe0fe612f2be8f675be6a6d0'
+ 'c058c96fc9dbd020aed9b9076c3c846111fc001f9955ad6554cf5f9788a9348935f4699bbe8fcf720af3daf6f472bb892061d25d9dbced8eef75be2eee4b8a4c'
+ '8e05505d5759f3e5fc73e02b0882a7c9781e3ceaaa68d1480ee13f492f4b8f517f3ed5a574dfefffa34cd58f5614b8981508665c6a4880fdcffedbdf8f69775d'
+ '704f86a2b61dbb9bf578c13457c907b45b49a4ae6ca9d9ff7568d5527515f13664092552d1fbe3a4765151cff1cb6517e2f3c928f3e89ae347e8020b660c0898'
+ '0864a208b2f8752a430f247aad4a6b7509e09678692559f8ef69eee3ce1c378e4d1233c9ed442819e8be4617d9b4f41c8300d290d202f86d6011100b22a0bb63'
+ '87c94eed8bbbcbe5625ac75135e825a9b1509276877bff0ac1f610269bb371cb5bac268b5bb5e07b6ad0629f7007b1936b04faea0a6c7ca080c26b631a986d40')
+
+package() {
+ # Install ms-office-online launcher
+ install -Dm755 "${srcdir}"/ms-office-online "${pkgdir}"/usr/share/ms-office/msoffice/ms-office-online
+ install -Dm755 "${srcdir}"/ms-office-online "${pkgdir}"/usr/share/ms-office/powerpoint/ms-office-online
+ install -Dm755 "${srcdir}"/ms-office-online "${pkgdir}"/usr/share/ms-office/excel/ms-office-online
+ install -Dm755 "${srcdir}"/ms-office-online "${pkgdir}"/usr/share/ms-office/word/ms-office-online
+ install -Dm755 "${srcdir}"/ms-office-online "${pkgdir}"/usr/share/ms-office/outlook/ms-office-online
+ install -Dm755 "${srcdir}"/ms-office-online "${pkgdir}"/usr/share/ms-office/onenote/ms-office-online
+ install -Dm755 "${srcdir}"/ms-office-online "${pkgdir}"/usr/share/ms-office/webskype/ms-office-online
+
+ # Install json settings
+ install -Dm644 "${srcdir}"/settings.json "${pkgdir}"/usr/share/ms-office/msoffice/settings.json
+ install -Dm644 "${srcdir}"/settings.json "${pkgdir}"/usr/share/ms-office/powerpoint/settings.json
+ install -Dm644 "${srcdir}"/settings.json "${pkgdir}"/usr/share/ms-office/excel/settings.json
+ install -Dm644 "${srcdir}"/settings.json "${pkgdir}"/usr/share/ms-office/word/settings.json
+ install -Dm644 "${srcdir}"/settings.json "${pkgdir}"/usr/share/ms-office/outlook/settings.json
+ install -Dm644 "${srcdir}"/settings.json "${pkgdir}"/usr/share/ms-office/onenote/settings.json
+ install -Dm644 "${srcdir}"/settings.json "${pkgdir}"/usr/share/ms-office/webskype/settings.json
+
+ # Create binaries
+ mkdir -p "${pkgdir}"/usr/bin
+
+ echo "#!/bin/sh" > "${pkgdir}"/usr/bin/msoffice
+ echo "cd /usr/share/ms-office/msoffice" >> "${pkgdir}"/usr/bin/msoffice
+ echo "./ms-office-online" >> "${pkgdir}"/usr/bin/msoffice
+ sed -i -e "s|_URL_|https://www.office.com/login?es=Click&ru=%2F|" "${pkgdir}"/usr/share/ms-office/msoffice/settings.json
+
+ echo "#!/bin/sh" > "${pkgdir}"/usr/bin/powerpoint
+ echo "cd /usr/share/ms-office/powerpoint" >> "${pkgdir}"/usr/bin/powerpoint
+ echo "./ms-office-online" >> "${pkgdir}"/usr/bin/powerpoint
+ sed -i -e "s|_URL_|https://office.live.com/start/PowerPoint.aspx|" "${pkgdir}"/usr/share/ms-office/powerpoint/settings.json
+
+ echo "#!/bin/sh" > "${pkgdir}"/usr/bin/excel
+ echo "cd /usr/share/ms-office/excel" >> "${pkgdir}"/usr/bin/excel
+ echo "./ms-office-online" >> "${pkgdir}"/usr/bin/excel
+ sed -i -e "s|_URL_|https://office.live.com/start/Excel.aspx|" "${pkgdir}"/usr/share/ms-office/excel/settings.json
+
+ echo "#!/bin/sh" > "${pkgdir}"/usr/bin/word
+ echo "cd /usr/share/ms-office/word" >> "${pkgdir}"/usr/bin/word
+ echo "./ms-office-online" >> "${pkgdir}"/usr/bin/word
+ sed -i -e "s|_URL_|https://office.live.com/start/Word.aspx|" "${pkgdir}"/usr/share/ms-office/word/settings.json
+
+ echo "#!/bin/sh" > "${pkgdir}"/usr/bin/outlook
+ echo "cd /usr/share/ms-office/outlook" >> "${pkgdir}"/usr/bin/outlook
+ echo "./ms-office-online" >> "${pkgdir}"/usr/bin/outlook
+ sed -i -e "s|_URL_|https://outlook.live.com/owa|" "${pkgdir}"/usr/share/ms-office/outlook/settings.json
+
+ echo "#!/bin/sh" > "${pkgdir}"/usr/bin/onenote
+ echo "cd /usr/share/ms-office/onenote" >> "${pkgdir}"/usr/bin/onenote
+ echo "./ms-office-online" >> "${pkgdir}"/usr/bin/onenote
+ sed -i -e "s|_URL_|https://www.onenote.com/notebooks|" "${pkgdir}"/usr/share/ms-office/onenote/settings.json
+
+ echo "#!/bin/sh" > "${pkgdir}"/usr/bin/webskype
+ echo "cd /usr/share/ms-office/webskype" >> "${pkgdir}"/usr/bin/webskype
+ echo "./ms-office-online" >> "${pkgdir}"/usr/bin/webskype
+ sed -i -e "s|_URL_|https://web.skype.com|" "${pkgdir}"/usr/share/ms-office/webskype/settings.json
+
+ chmod a+x "${pkgdir}"/usr/bin/*
+
+ # Configure json settings
+ sed -i -e "s|_icon_|/usr/share/icons/ms-office/MSOffice.png|" "${pkgdir}"/usr/share/ms-office/msoffice/settings.json
+ sed -i -e "s|_icon_|/usr/share/icons/ms-office/PowerPoint.png|" "${pkgdir}"/usr/share/ms-office/powerpoint/settings.json
+ sed -i -e "s|_icon_|/usr/share/icons/ms-office/Excel.png|" "${pkgdir}"/usr/share/ms-office/excel/settings.json
+ sed -i -e "s|_icon_|/usr/share/icons/ms-office/Word.png|" "${pkgdir}"/usr/share/ms-office/word/settings.json
+ sed -i -e "s|_icon_|/usr/share/icons/ms-office/Outlook.png|" "${pkgdir}"/usr/share/ms-office/outlook/settings.json
+ sed -i -e "s|_icon_|/usr/share/icons/ms-office/OneNote.png|" "${pkgdir}"/usr/share/ms-office/onenote/settings.json
+ sed -i -e "s|_icon_|/usr/share/icons/ms-office/WebSkype.png|" "${pkgdir}"/usr/share/ms-office/webskype/settings.json
+
+ # Install icons
+ install -Dm644 "${srcdir}"/MSOffice.png "${pkgdir}"/usr/share/icons/ms-office/MSOffice.png
+ install -Dm644 "${srcdir}"/PowerPoint.png "${pkgdir}"/usr/share/icons/ms-office/PowerPoint.png
+ install -Dm644 "${srcdir}"/Excel.png "${pkgdir}"/usr/share/icons/ms-office/Excel.png
+ install -Dm644 "${srcdir}"/Word.png "${pkgdir}"/usr/share/icons/ms-office/Word.png
+ install -Dm644 "${srcdir}"/Outlook.png "${pkgdir}"/usr/share/icons/ms-office/Outlook.png
+ install -Dm644 "${srcdir}"/OneNote.png "${pkgdir}"/usr/share/icons/ms-office/OneNote.png
+ install -Dm644 "${srcdir}"/WebSkype.png "${pkgdir}"/usr/share/icons/ms-office/WebSkype.png
+
+ # Install desktop files
+ install -Dm644 "${srcdir}"/MSOffice.desktop "${pkgdir}"/usr/share/applications/MSOffice.desktop
+ install -Dm644 "${srcdir}"/PowerPoint.desktop "${pkgdir}"/usr/share/applications/PowerPoint.desktop
+ install -Dm644 "${srcdir}"/Excel.desktop "${pkgdir}"/usr/share/applications/Excel.desktop
+ install -Dm644 "${srcdir}"/Word.desktop "${pkgdir}"/usr/share/applications/Word.desktop
+ install -Dm644 "${srcdir}"/Outlook.desktop "${pkgdir}"/usr/share/applications/Outlook.desktop
+ install -Dm644 "${srcdir}"/OneNote.desktop "${pkgdir}"/usr/share/applications/OneNote.desktop
+ install -Dm644 "${srcdir}"/WebSkype.desktop "${pkgdir}"/usr/share/applications/WebSkype.desktop
+}
diff --git a/PowerPoint.desktop b/PowerPoint.desktop
new file mode 100644
index 000000000000..3b4103a1a36e
--- /dev/null
+++ b/PowerPoint.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=/usr/share/icons/ms-office/PowerPoint.png
+Type=Application
+Categories=Office;
+Exec=powerpoint
+Name=Microsoft PowerPoint Online
+GenericName=PowerPoint
+GenericName[en]=PowerPoint
+StartupNotify=true
diff --git a/PowerPoint.png b/PowerPoint.png
new file mode 100644
index 000000000000..1a401e7a494a
--- /dev/null
+++ b/PowerPoint.png
Binary files differ
diff --git a/WebSkype.desktop b/WebSkype.desktop
new file mode 100644
index 000000000000..b837f57eae01
--- /dev/null
+++ b/WebSkype.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=/usr/share/icons/ms-office/WebSkype.png
+Type=Application
+Categories=Network;
+Exec=webskype
+Name=Skype for Web
+GenericName=Skype
+GenericName[en]=Skype
+StartupNotify=true
diff --git a/WebSkype.png b/WebSkype.png
new file mode 100644
index 000000000000..b949ed2b55cc
--- /dev/null
+++ b/WebSkype.png
Binary files differ
diff --git a/Word.desktop b/Word.desktop
new file mode 100644
index 000000000000..0ae9ec262ea6
--- /dev/null
+++ b/Word.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Icon=/usr/share/icons/ms-office/Word.png
+Type=Application
+Categories=Office;
+Exec=word
+Name=Microsoft Word Online
+GenericName=Word
+GenericName[en]=Word
+StartupNotify=true
diff --git a/Word.png b/Word.png
new file mode 100644
index 000000000000..813e2b36fe02
--- /dev/null
+++ b/Word.png
Binary files differ
diff --git a/ms-office-online b/ms-office-online
new file mode 100755
index 000000000000..9dd6751b8f40
--- /dev/null
+++ b/ms-office-online
@@ -0,0 +1,52 @@
+#!/usr/bin/env python3
+# coding: utf-8
+try:
+ from j.AK import Api, AppWindow, settings
+
+except Exception as err:
+ print("Ops something went wrong: " + str(err))
+
+import os, subprocess
+from gi.repository import Gtk, WebKit2
+
+def same_frame():
+ # open url in same window
+ return tuple(settings("webkit", "same_frame"))
+
+class applicationWindow(AppWindow):
+ """
+ extends AK.AppWindow functionality
+ """
+
+ def __init__(self):
+ super(applicationWindow, self).__init__()
+ def on_decide_policy(webview, decision, decision_type):
+ """
+ :param webview:
+ :param decision:
+ :param decision_type:
+ :return: if is not a predicted url open in separate window.
+ """
+
+ def check_Link(url):
+
+ if url.startswith(same_frame()):
+ self.webview.load_uri(url)
+
+ else:
+ # use existing office settings.json
+ os.chdir("/usr/share/ms-office/msoffice/")
+ # open url in a new window
+ subprocess.call(["jak", url])
+
+ if decision_type == WebKit2.PolicyDecisionType.NEW_WINDOW_ACTION:
+ url = decision.get_navigation_action().get_request().get_uri()
+ check_Link(url)
+
+
+ self.webview.load_uri(settings("app", "route"))
+ self.webview.connect("decide-policy", on_decide_policy)
+
+
+applicationWindow()
+Gtk.main()
diff --git a/settings.json b/settings.json
new file mode 100644
index 000000000000..1296d92403de
--- /dev/null
+++ b/settings.json
@@ -0,0 +1,23 @@
+{
+ "app": {
+ "route": "_URL_",
+ "name": "Microsoft Office Online",
+ "description": "Collaborate with others and work together at the same time, with Microsoft Office Online."
+ },
+ "window": {
+ "width": 1150,
+ "height": 650,
+ "icon": "_icon_"
+ },
+ "webkit": {
+ "cache": "online",
+ "context_menu": true,
+ "user_agent": "",
+ "site_quirks": true,
+ "same_frame": ["https://www.onenote.com", "https://outlook.live.com",
+ "https://office.live.com", "https://www.office.com", "https://office365.com",
+ "https://r4.res.office365.com", "https://secure.aadcdn.microsoftonline-p.com",
+ "https://d.docs.live.net", "https://web.skype.com", "https://flow.microsoft.com",
+ "https://www.sway.com", "https://calendar.live.com", "https://people.live.com"]
+ }
+}