mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-12-25 20:47:59 +01:00
bash/usr-local-bin: cleanup Chromium wrappers heavy-handedly
This commit is contained in:
parent
4478842858
commit
d4017bc9f5
@ -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
|
|
||||||
@ -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
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
brave-beta --guest "$@"
|
|
||||||
set +x
|
|
||||||
@ -1 +0,0 @@
|
|||||||
brave
|
|
||||||
@ -1 +0,0 @@
|
|||||||
brave-nightly
|
|
||||||
@ -1 +0,0 @@
|
|||||||
brave-nightly-guest
|
|
||||||
@ -1 +0,0 @@
|
|||||||
brave
|
|
||||||
@ -1 +0,0 @@
|
|||||||
brave-guest
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
brave --guest "$@"
|
|
||||||
set +x
|
|
||||||
@ -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
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
brave-nightly --guest "$@"
|
|
||||||
set +x
|
|
||||||
@ -1,12 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
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
|
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
|
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
|
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
|
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
|
fi
|
||||||
set +x
|
set +x
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
chromium --guest "$@"
|
|
||||||
set +x
|
|
||||||
@ -1 +0,0 @@
|
|||||||
microsoft-edge-beta
|
|
||||||
@ -1 +0,0 @@
|
|||||||
microsoft-edge-beta-guest
|
|
||||||
@ -1 +0,0 @@
|
|||||||
microsoft-edge-dev
|
|
||||||
@ -1 +0,0 @@
|
|||||||
microsoft-edge-dev-guest
|
|
||||||
@ -1 +0,0 @@
|
|||||||
microsoft-edge-guest
|
|
||||||
@ -1,21 +1,24 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
else
|
||||||
chromiuma "$@"
|
chromiuma "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
google-chrome --guest "$@"
|
|
||||||
set +x
|
|
||||||
@ -1,4 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
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
|
set +x
|
||||||
|
|||||||
@ -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
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
microsoft-edge-beta --guest "$@"
|
|
||||||
set +x
|
|
||||||
@ -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
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
microsoft-edge-dev --guest "$@"
|
|
||||||
set +x
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
microsoft-edge --guest "$@"
|
|
||||||
set +x
|
|
||||||
@ -1,10 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
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
|
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
|
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
|
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
|
fi
|
||||||
set +x
|
set +x
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -x
|
|
||||||
vivaldi --guest "$@"
|
|
||||||
set +x
|
|
||||||
Loading…
x
Reference in New Issue
Block a user