bash/usr-local-bin: cleanup Chromium wrappers heavy-handedly

This commit is contained in:
Aminda Suomalainen 2025-12-25 10:13:01 +02:00
parent 4478842858
commit d4017bc9f5
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
28 changed files with 28 additions and 101 deletions

View File

@ -1,12 +0,0 @@
#!/usr/bin/env bash
set -x
if [[ -d "$HOME/.config/BraveSoftware/Brave-Browser-Nightly" && -d "$HOME/.cache/BraveSoftware/Brave-Browser-Nightly" ]]; then
/usr/bin/brave-browser-nightly --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
elif [ -f /usr/bin/brave-browser-stable ]; then
/usr/bin/brave-browser-stable --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
elif [ -f /var/lib/snapd/snap/bin/brave ]; then
snap run brave --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
fi
set +x

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
/usr/bin/brave-browser-beta --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
set +x

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
brave-beta --guest "$@"
set +x

View File

@ -1 +0,0 @@
brave

View File

@ -1 +0,0 @@
brave-nightly

View File

@ -1 +0,0 @@
brave-nightly-guest

View File

@ -1 +0,0 @@
brave

View File

@ -1 +0,0 @@
brave-guest

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
brave --guest "$@"
set +x

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
/usr/bin/brave-browser-nightly --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
set +x

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
brave-nightly --guest "$@"
set +x

View File

@ -1,12 +1,15 @@
#!/usr/bin/env bash
set -x
FlagsForChromium="--ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled $@"
if [ -f /usr/bin/chromium-browser ]; then
/usr/bin/chromium-browser --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/chromium-browser $FlagsForChromium
elif [ -f /usr/bin/chromium ]; then
/usr/bin/chromium --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/chromium $FlagsForChromium
elif [ -f /var/lib/snapd/snap/bin/chromium ]; then
snap run chromium --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
snap run chromium $FlagsForChromium
else
flatpak run org.chromium.Chromium --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
flatpak run org.chromium.Chromium $FlagsForChromium
fi
set +x

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
chromium --guest "$@"
set +x

View File

@ -1 +0,0 @@
microsoft-edge-beta

View File

@ -1 +0,0 @@
microsoft-edge-beta-guest

View File

@ -1 +0,0 @@
microsoft-edge-dev

View File

@ -1 +0,0 @@
microsoft-edge-dev-guest

View File

@ -1 +0,0 @@
microsoft-edge-guest

View File

@ -1,21 +1,24 @@
#!/usr/bin/env bash
set -x
FlagsForChromium="--ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled $@"
if [[ -d "$HOME/.config/google-chrome-canary" && -d "$HOME/.cache/google-chrome-canary" ]]; then
/usr/bin/google-chrome-canary --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/google-chrome-canary $FlagsForChromium
elif [[ -d "$HOME/.config/google-chrome-unstable" && -d "$HOME/.cache/google-chrome-unstable" ]]; then
/usr/bin/google-chrome-unstable --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/google-chrome-unstable $FlagsForChromium
elif [[ -d "$HOME/.config/google-chrome-beta" && -d "$HOME/.cache/google-chrome-beta" ]]; then
/usr/bin/google-chrome-beta --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/google-chrome-beta $FlagsForChromium
elif hash google-chrome-stable 2> /dev/null; then
/usr/bin/google-chrome-stable --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/google-chrome-stable $FlagsForChromium
elif hash google-chrome-beta 2> /dev/null; then
/usr/bin/google-chrome-beta --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/google-chrome-beta $FlagsForChromium
elif hash google-chrome-unstable 2> /dev/null; then
/usr/bin/google-chrome-unstable --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/google-chrome-unstable $FlagsForChromium
elif hash google-chrome-canary 2> /dev/null; then
/usr/bin/google-chrome-canary --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/google-chrome-canary $FlagsForChromium
elif hash com.google.Chrome 2> /dev/null; then
com.google.Chrome --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
com.google.Chrome $FlagsForChromium
else
chromiuma "$@"
fi

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
google-chrome --guest "$@"
set +x

View File

@ -1,4 +1,7 @@
#!/usr/bin/env bash
set -x
/usr/bin/microsoft-edge --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
FlagsForChromium="--ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled $@"
/usr/bin/microsoft-edge $FlagsForChromium
set +x

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
set -x
/usr/bin/microsoft-edge-beta --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
set +x

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
microsoft-edge-beta --guest "$@"
set +x

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
set -x
/usr/bin/microsoft-edge-dev --ozone-platform=wayland --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled --disk-cache-dir='/dev/null' "$@"
set +x

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
microsoft-edge-dev --guest "$@"
set +x

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
microsoft-edge --guest "$@"
set +x

View File

@ -1,10 +1,13 @@
#!/usr/bin/env bash
set -x
FlagsForChromium="--ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled $@"
if [[ -d "$HOME/.config/vivaldi-snapshot" && -d "$HOME/.cache/vivaldi-snapshot" ]]; then
/usr/bin/vivaldi-snapshot --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/vivaldi-snapshot $FlagsForChromium
elif [ -f /usr/bin/vivaldi ]; then
/usr/bin/vivaldi --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
/usr/bin/vivaldi $FlagsForChromium
elif [ -f /var/lib/snapd/snap/bin/vivaldi.vivaldi-stable ]; then
snap run vivaldi.vivaldi-stable --ozone-platform=wayland --disk-cache-dir='/dev/null' --enable-features=WaylandWindowDecorations --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled "$@"
snap run vivaldi.vivaldi-stable $FlagsForChromium
fi
set +x

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -x
vivaldi --guest "$@"
set +x