From 56e8490846fc3eb0ddea48e42bece2b452f5ad1e Mon Sep 17 00:00:00 2001 From: TheSpad Date: Thu, 18 May 2023 20:11:40 +0100 Subject: [PATCH] Add wrappers --- root/defaults/usr/bin/exo-open | 7 +++++++ root/defaults/usr/local/bin/wrapped-chromium | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100755 root/defaults/usr/bin/exo-open create mode 100755 root/defaults/usr/local/bin/wrapped-chromium diff --git a/root/defaults/usr/bin/exo-open b/root/defaults/usr/bin/exo-open new file mode 100755 index 00000000..41c561bb --- /dev/null +++ b/root/defaults/usr/bin/exo-open @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "${2}" == "WebBrowser" ]; then + /usr/bin/xdg-open /usr/share/applications/chromium.desktop +else + /usr/bin/exo-open-real "$@" +fi diff --git a/root/defaults/usr/local/bin/wrapped-chromium b/root/defaults/usr/local/bin/wrapped-chromium new file mode 100755 index 00000000..58b953c0 --- /dev/null +++ b/root/defaults/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