From cdd6efa501ab6ec25e9a69f85e5cabe7df3f7825 Mon Sep 17 00:00:00 2001 From: Michael Trip Date: Wed, 31 May 2023 16:18:07 +0200 Subject: [PATCH] added scripts --- mate/usr/bin/exo-open | 7 +++++++ mate/usr/local/bin/wrapped-chromium | 10 ++++++++++ xfce/usr/bin/exo-open | 7 +++++++ xfce/usr/local/bin/wrapped-chromium | 10 ++++++++++ 4 files changed, 34 insertions(+) create mode 100755 mate/usr/bin/exo-open create mode 100755 mate/usr/local/bin/wrapped-chromium create mode 100755 xfce/usr/bin/exo-open create mode 100755 xfce/usr/local/bin/wrapped-chromium diff --git a/mate/usr/bin/exo-open b/mate/usr/bin/exo-open new file mode 100755 index 0000000..e40c636 --- /dev/null +++ b/mate/usr/bin/exo-open @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "${2}" == "WebBrowser" ]; then + /usr/bin/dex-autostart /usr/share/applications/chromium-browser.desktop +else + /usr/bin/exo-open-real "$@" +fi diff --git a/mate/usr/local/bin/wrapped-chromium b/mate/usr/local/bin/wrapped-chromium new file mode 100755 index 0000000..58b953c --- /dev/null +++ b/mate/usr/local/bin/wrapped-chromium @@ -0,0 +1,10 @@ +#!/bin/bash + +BIN=/usr/bin/chromium-browser + +# Run normally on privved containers or modified un non priv +if grep -q 'Seccomp: 0' /proc/1/status; then + ${BIN} --password-store=basic "$@" +else + ${BIN} --password-store=basic --no-sandbox --test-type "$@" +fi diff --git a/xfce/usr/bin/exo-open b/xfce/usr/bin/exo-open new file mode 100755 index 0000000..e40c636 --- /dev/null +++ b/xfce/usr/bin/exo-open @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "${2}" == "WebBrowser" ]; then + /usr/bin/dex-autostart /usr/share/applications/chromium-browser.desktop +else + /usr/bin/exo-open-real "$@" +fi diff --git a/xfce/usr/local/bin/wrapped-chromium b/xfce/usr/local/bin/wrapped-chromium new file mode 100755 index 0000000..58b953c --- /dev/null +++ b/xfce/usr/local/bin/wrapped-chromium @@ -0,0 +1,10 @@ +#!/bin/bash + +BIN=/usr/bin/chromium-browser + +# Run normally on privved containers or modified un non priv +if grep -q 'Seccomp: 0' /proc/1/status; then + ${BIN} --password-store=basic "$@" +else + ${BIN} --password-store=basic --no-sandbox --test-type "$@" +fi