summarylogtreecommitdiffstats
path: root/chromium-fullscreen.install
diff options
context:
space:
mode:
authorJulian Xhokaxhiu2016-09-27 15:57:58 +0200
committerJulian Xhokaxhiu2016-09-27 15:57:58 +0200
commitcf9ee355545cecf18f3346413a4c99667a5d8765 (patch)
treee754c98454a584492e5904a8f1468d7506b31036 /chromium-fullscreen.install
parent20c1bcfcc6d444e3c67821af7cda955c5841877f (diff)
downloadaur-cf9ee355545cecf18f3346413a4c99667a5d8765.tar.gz
Disable web security was not the right solution
In order to disable X-Frame-Option header security, we need to tackle this via an extension. So provide a way to automatically load it, every time the chromium process starts.
Diffstat (limited to 'chromium-fullscreen.install')
-rw-r--r--chromium-fullscreen.install7
1 files changed, 6 insertions, 1 deletions
diff --git a/chromium-fullscreen.install b/chromium-fullscreen.install
index a0dca1e6886d..aa33b66c72d6 100644
--- a/chromium-fullscreen.install
+++ b/chromium-fullscreen.install
@@ -1,4 +1,4 @@
-post_install() {
+pre_install() {
# Update systemd sysusers
systemd-sysusers
@@ -8,6 +8,11 @@ post_install() {
# Create a first sample of Autostart Url
echo -e "https://www.archlinux.org/\n" > /home/chromium/chromium-autostart-url.txt
+ # Create the extensions folders
+ mkdir -p /home/chromium/.extensions/disable-x-frame-option
+}
+
+post_install() {
# Fix permissions
chown -R chromium:chromium /home/chromium