bash/usr-local-bin: attempt to fix double quoting

This commit is contained in:
Aminda Suomalainen 2024-03-20 06:50:18 +02:00
parent 29a72a17ca
commit 92f20f7027
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
28 changed files with 40 additions and 40 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
/usr/bin/brave-browser-stable --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ /usr/bin/brave-browser-stable --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
/usr/bin/chromium-browser --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ /usr/bin/chromium-browser --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
flatpak run com.visualstudio.code --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ flatpak run com.visualstudio.code --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -2,5 +2,5 @@
set -x set -x
# https://github.com/flathub/com.vscodium.codium/issues/55 # https://github.com/flathub/com.vscodium.codium/issues/55
flatpak run com.vscodium.codium --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ flatpak run com.vscodium.codium --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
flatpak run chat.delta.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ flatpak run chat.delta.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
flatpak run im.riot.Riot --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ flatpak run im.riot.Riot --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -3,5 +3,5 @@
set -x set -x
# proxy authentication is not supported # proxy authentication is not supported
# https://github.com/vector-im/element-web/issues/3320 # https://github.com/vector-im/element-web/issues/3320
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -9,7 +9,7 @@ if [ -f /snap/bin/fluffychat ]; then
# I am supposed to be a Finnish localizer so my eo over fi as protest # I am supposed to be a Finnish localizer so my eo over fi as protest
# doesn't work here! # doesn't work here!
export LANGUAGE=fi:eo:en export LANGUAGE=fi:eo:en
snap run fluffychat $@ snap run fluffychat "$@"
else else
/usr/bin/fluffychat /usr/bin/fluffychat
fi fi

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
/usr/bin/google-chrome-stable --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ /usr/bin/google-chrome-stable --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -3,13 +3,13 @@
#set -x #set -x
# The usual system-wide installation # The usual system-wide installation
if [ -f /usr/bin/kile ]; then if [ -f /usr/bin/kile ]; then
/usr/bin/kile $@ /usr/bin/kile "$@"
# System-wide flatpak # System-wide flatpak
elif [ -f /var/lib/flatpak/exports/bin/org.kde.kile ]; then elif [ -f /var/lib/flatpak/exports/bin/org.kde.kile ]; then
flatpak run org.kde.kile $@ flatpak run org.kde.kile "$@"
# User-specific flatpak # User-specific flatpak
elif [ -f ~/.local/share/flatpak/exports/bin/org.kde.kile ]; then elif [ -f ~/.local/share/flatpak/exports/bin/org.kde.kile ]; then
flatpak run --user org.kde.kile $@ flatpak run --user org.kde.kile "$@"
# If not found. # If not found.
else else
printf "kile doesn't seem to be installed :(" printf "kile doesn't seem to be installed :("

View File

@ -5,13 +5,13 @@
#set -x #set -x
# The usual system-wide installation # The usual system-wide installation
if [ -f /var/lib/flatpak/exports/bin/org.libreoffice.LibreOffice ]; then if [ -f /var/lib/flatpak/exports/bin/org.libreoffice.LibreOffice ]; then
flatpak run org.libreoffice.LibreOffice $@ flatpak run org.libreoffice.LibreOffice "$@"
# User-specific flatpak # User-specific flatpak
elif [ -f ~/.local/share/flatpak/exports/bin/org.libreoffice.LibreOffice ]; then elif [ -f ~/.local/share/flatpak/exports/bin/org.libreoffice.LibreOffice ]; then
flatpak run --user org.libreoffice.LibreOffice $@ flatpak run --user org.libreoffice.LibreOffice "$@"
# The usual installation # The usual installation
elif [ -f /usr/bin/libreoffice ]; then elif [ -f /usr/bin/libreoffice ]; then
/usr/bin/libreoffice $@ /usr/bin/libreoffice "$@"
else else
printf "LibreOffice doesn't seem to be installed :(" printf "LibreOffice doesn't seem to be installed :("
fi fi

View File

@ -3,13 +3,13 @@
#set -x #set -x
# The usual system-wide installation # The usual system-wide installation
if [ -f /usr/bin/meld ]; then if [ -f /usr/bin/meld ]; then
/usr/bin/meld $@ /usr/bin/meld "$@"
# System-wide flatpak # System-wide flatpak
elif [ -f /var/lib/flatpak/exports/bin/org.gnome.meld ]; then elif [ -f /var/lib/flatpak/exports/bin/org.gnome.meld ]; then
flatpak run org.gnome.meld $@ flatpak run org.gnome.meld "$@"
# User-specific flatpak # User-specific flatpak
elif [ -f ~/.local/share/flatpak/exports/bin/org.gnome.meld ]; then elif [ -f ~/.local/share/flatpak/exports/bin/org.gnome.meld ]; then
flatpak run --user org.gnome.meld $@ flatpak run --user org.gnome.meld "$@"
# If not found. # If not found.
else else
printf "meld doesn't seem to be installed :(" printf "meld doesn't seem to be installed :("

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
/usr/bin/microsoft-edge --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ /usr/bin/microsoft-edge --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
flatpak run com.github.IsmaelMartinez.teams_for_linux --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ flatpak run com.github.IsmaelMartinez.teams_for_linux --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -3,13 +3,13 @@
#set -x #set -x
# The usual system-wide installation # The usual system-wide installation
if [ -f /usr/bin/mpv ]; then if [ -f /usr/bin/mpv ]; then
/usr/bin/mpv $@ /usr/bin/mpv "$@"
# System-wide flatpak # System-wide flatpak
elif [ -f /var/lib/flatpak/exports/bin/io.mpv.Mpv ]; then elif [ -f /var/lib/flatpak/exports/bin/io.mpv.Mpv ]; then
flatpak run io.mpv.Mpv $@ flatpak run io.mpv.Mpv "$@"
# User-specific flatpak # User-specific flatpak
elif [ -f ~/.local/share/flatpak/exports/bin/io.mpv.Mpv ]; then elif [ -f ~/.local/share/flatpak/exports/bin/io.mpv.Mpv ]; then
flatpak run --user io.mpv.Mpv $@ flatpak run --user io.mpv.Mpv "$@"
# If not found. # If not found.
else else
printf "mpv doesn't seem to be installed :(" printf "mpv doesn't seem to be installed :("

View File

@ -7,5 +7,5 @@
# In case of unexplained crashing add the --compact flag! # In case of unexplained crashing add the --compact flag!
set -x set -x
flatpak run --env=LANGUAGE=fi:eo:en im.nheko.Nheko//master --profile $@ flatpak run --env=LANGUAGE=fi:eo:en im.nheko.Nheko//master --profile "$@"
set +x set +x

View File

@ -6,5 +6,5 @@
# TODO: Handle --help & --version flags # TODO: Handle --help & --version flags
set -x set -x
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master --profile $@ flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master --profile "$@"
set +x set +x

View File

@ -3,13 +3,13 @@
#set -x #set -x
# The usual system-wide installation # The usual system-wide installation
if [ -f /usr/bin/nvim ]; then if [ -f /usr/bin/nvim ]; then
/usr/bin/nvim $@ /usr/bin/nvim "$@"
# System-wide flatpak # System-wide flatpak
elif [ -f /var/lib/flatpak/exports/bin/io.neovim.nvim ]; then elif [ -f /var/lib/flatpak/exports/bin/io.neovim.nvim ]; then
flatpak run io.neovim.nvim $@ flatpak run io.neovim.nvim "$@"
# User-specific flatpak # User-specific flatpak
elif [ -f ~/.local/share/flatpak/exports/bin/io.neovim.nvim ]; then elif [ -f ~/.local/share/flatpak/exports/bin/io.neovim.nvim ]; then
flatpak run --user io.neovim.nvim $@ flatpak run --user io.neovim.nvim "$@"
# If not found. # If not found.
else else
printf "nvim doesn't seem to be installed :(" printf "nvim doesn't seem to be installed :("

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
flatpak run chat.schildi.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --system-theme-dark-override $@ flatpak run chat.schildi.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@"
set +x set +x

View File

@ -3,5 +3,5 @@
set -x set -x
# proxy authentication is not supported # proxy authentication is not supported
# https://github.com/vector-im/element-web/issues/3320 # https://github.com/vector-im/element-web/issues/3320
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC chat.schildi.desktop --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --system-theme-dark-override $@ flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC chat.schildi.desktop --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@"
set +x set +x

View File

@ -4,5 +4,5 @@
set -x set -x
# --start-in-tray - would be nice, but then I cannot open it from there, thus --use-tray-icon # --start-in-tray - would be nice, but then I cannot open it from there, thus --use-tray-icon
flatpak run org.signal.Signal --use-tray-icon --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ flatpak run org.signal.Signal --use-tray-icon --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -25,5 +25,5 @@ export ELECTRON_OZONE_PLATFORM_HINT=wayland
# Mozilla Products # Mozilla Products
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
dbus-launch --exit-with-session startplasma-wayland $@ dbus-launch --exit-with-session startplasma-wayland "$@"
set +x set +x

View File

@ -41,5 +41,5 @@ export ELECTRON_OZONE_PLATFORM_HINT=wayland
# Mozilla Products # Mozilla Products
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
dbus-launch --exit-with-session sway --unsupported-gpu $@ dbus-launch --exit-with-session sway --unsupported-gpu "$@"
set +x set +x

View File

@ -5,10 +5,10 @@ export MANGOHUD_CONFIG=position=bottom-left,font_size=18
# So my Steam downloads don't go through the VPN and it won't prompt for # So my Steam downloads don't go through the VPN and it won't prompt for
# password that often # password that often
#/usr/bin/mullvad-exclude #/usr/bin/mullvad-exclude
mangohud gamemoderun /usr/bin/steam $@ mangohud gamemoderun /usr/bin/steam "$@"
# Having "flatpak run" will make mullvad-exclude lose effect! # Having "flatpak run" will make mullvad-exclude lose effect!
# Additionally I wasn't able to get this to access the usual game library # Additionally I wasn't able to get this to access the usual game library
# or keep using compatibility tool (Proton) checked. # or keep using compatibility tool (Proton) checked.
#/usr/bin/mullvad-exclude #/usr/bin/mullvad-exclude
#mangohud gamemoderun /var/lib/flatpak/exports/bin/com.valvesoftware.Steam $@ #mangohud gamemoderun /var/lib/flatpak/exports/bin/com.valvesoftware.Steam "$@"
set +x set +x

View File

@ -3,8 +3,8 @@ set -x
if [ -f /snap/bin/superproductivity ]; then if [ -f /snap/bin/superproductivity ]; then
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105 # https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
snap run superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ snap run superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
else else
/usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations /usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
fi fi
set +x set +x

View File

@ -13,5 +13,5 @@ set -x
# ^ for requirements_gui.txt if desired # ^ for requirements_gui.txt if desired
# this script should now work # this script should now work
. ~/src/github.com/syncplay/syncplay/venv/bin/activate . ~/src/github.com/syncplay/syncplay/venv/bin/activate
/home/aminda/src/github.com/syncplay/syncplay/syncplayClient.py $@ /home/aminda/src/github.com/syncplay/syncplay/syncplayClient.py "$@"
set +x set +x

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -x
/usr/bin/vivaldi --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@ /usr/bin/vivaldi --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
set +x set +x

View File

@ -3,7 +3,7 @@ set -x
if [ -f /snap/bin/vlc ]; then if [ -f /snap/bin/vlc ]; then
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105 # https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
snap run vlc $@ snap run vlc "$@"
else else
/usr/bin/vlc /usr/bin/vlc
fi fi