mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-22 11:19:25 +01:00
bash/usr-local-bin: attempt to fix double quoting
This commit is contained in:
parent
29a72a17ca
commit
92f20f7027
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
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
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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
|
||||
|
@ -2,5 +2,5 @@
|
||||
|
||||
set -x
|
||||
# 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
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
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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
|
||||
|
@ -3,5 +3,5 @@
|
||||
set -x
|
||||
# proxy authentication is not supported
|
||||
# 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
|
||||
|
@ -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
|
||||
# doesn't work here!
|
||||
export LANGUAGE=fi:eo:en
|
||||
snap run fluffychat $@
|
||||
snap run fluffychat "$@"
|
||||
else
|
||||
/usr/bin/fluffychat
|
||||
fi
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
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
|
||||
|
@ -3,13 +3,13 @@
|
||||
#set -x
|
||||
# The usual system-wide installation
|
||||
if [ -f /usr/bin/kile ]; then
|
||||
/usr/bin/kile $@
|
||||
/usr/bin/kile "$@"
|
||||
# System-wide flatpak
|
||||
elif [ -f /var/lib/flatpak/exports/bin/org.kde.kile ]; then
|
||||
flatpak run org.kde.kile $@
|
||||
flatpak run org.kde.kile "$@"
|
||||
# User-specific flatpak
|
||||
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.
|
||||
else
|
||||
printf "kile doesn't seem to be installed :("
|
||||
|
@ -5,13 +5,13 @@
|
||||
#set -x
|
||||
# The usual system-wide installation
|
||||
if [ -f /var/lib/flatpak/exports/bin/org.libreoffice.LibreOffice ]; then
|
||||
flatpak run org.libreoffice.LibreOffice $@
|
||||
flatpak run org.libreoffice.LibreOffice "$@"
|
||||
# User-specific flatpak
|
||||
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
|
||||
elif [ -f /usr/bin/libreoffice ]; then
|
||||
/usr/bin/libreoffice $@
|
||||
/usr/bin/libreoffice "$@"
|
||||
else
|
||||
printf "LibreOffice doesn't seem to be installed :("
|
||||
fi
|
||||
|
@ -3,13 +3,13 @@
|
||||
#set -x
|
||||
# The usual system-wide installation
|
||||
if [ -f /usr/bin/meld ]; then
|
||||
/usr/bin/meld $@
|
||||
/usr/bin/meld "$@"
|
||||
# System-wide flatpak
|
||||
elif [ -f /var/lib/flatpak/exports/bin/org.gnome.meld ]; then
|
||||
flatpak run org.gnome.meld $@
|
||||
flatpak run org.gnome.meld "$@"
|
||||
# User-specific flatpak
|
||||
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.
|
||||
else
|
||||
printf "meld doesn't seem to be installed :("
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
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
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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
|
||||
|
@ -3,13 +3,13 @@
|
||||
#set -x
|
||||
# The usual system-wide installation
|
||||
if [ -f /usr/bin/mpv ]; then
|
||||
/usr/bin/mpv $@
|
||||
/usr/bin/mpv "$@"
|
||||
# System-wide flatpak
|
||||
elif [ -f /var/lib/flatpak/exports/bin/io.mpv.Mpv ]; then
|
||||
flatpak run io.mpv.Mpv $@
|
||||
flatpak run io.mpv.Mpv "$@"
|
||||
# User-specific flatpak
|
||||
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.
|
||||
else
|
||||
printf "mpv doesn't seem to be installed :("
|
||||
|
@ -7,5 +7,5 @@
|
||||
# In case of unexplained crashing add the --compact flag!
|
||||
|
||||
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
|
||||
|
@ -6,5 +6,5 @@
|
||||
# TODO: Handle --help & --version flags
|
||||
|
||||
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
|
||||
|
@ -3,13 +3,13 @@
|
||||
#set -x
|
||||
# The usual system-wide installation
|
||||
if [ -f /usr/bin/nvim ]; then
|
||||
/usr/bin/nvim $@
|
||||
/usr/bin/nvim "$@"
|
||||
# System-wide flatpak
|
||||
elif [ -f /var/lib/flatpak/exports/bin/io.neovim.nvim ]; then
|
||||
flatpak run io.neovim.nvim $@
|
||||
flatpak run io.neovim.nvim "$@"
|
||||
# User-specific flatpak
|
||||
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.
|
||||
else
|
||||
printf "nvim doesn't seem to be installed :("
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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
|
||||
|
@ -3,5 +3,5 @@
|
||||
set -x
|
||||
# proxy authentication is not supported
|
||||
# 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
|
||||
|
@ -4,5 +4,5 @@
|
||||
|
||||
set -x
|
||||
# --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
|
||||
|
@ -25,5 +25,5 @@ export ELECTRON_OZONE_PLATFORM_HINT=wayland
|
||||
# Mozilla Products
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
|
||||
dbus-launch --exit-with-session startplasma-wayland $@
|
||||
dbus-launch --exit-with-session startplasma-wayland "$@"
|
||||
set +x
|
||||
|
@ -41,5 +41,5 @@ export ELECTRON_OZONE_PLATFORM_HINT=wayland
|
||||
# Mozilla Products
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
|
||||
dbus-launch --exit-with-session sway --unsupported-gpu $@
|
||||
dbus-launch --exit-with-session sway --unsupported-gpu "$@"
|
||||
set +x
|
||||
|
@ -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
|
||||
# password that often
|
||||
#/usr/bin/mullvad-exclude
|
||||
mangohud gamemoderun /usr/bin/steam $@
|
||||
mangohud gamemoderun /usr/bin/steam "$@"
|
||||
# Having "flatpak run" will make mullvad-exclude lose effect!
|
||||
# Additionally I wasn't able to get this to access the usual game library
|
||||
# or keep using compatibility tool (Proton) checked.
|
||||
#/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
|
||||
|
@ -3,8 +3,8 @@ set -x
|
||||
if [ -f /snap/bin/superproductivity ]; then
|
||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||
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
|
||||
/usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations
|
||||
/usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
|
||||
fi
|
||||
set +x
|
||||
|
@ -13,5 +13,5 @@ set -x
|
||||
# ^ for requirements_gui.txt if desired
|
||||
# this script should now work
|
||||
. ~/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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -x
|
||||
/usr/bin/vivaldi --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@
|
||||
/usr/bin/vivaldi --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
|
||||
set +x
|
||||
|
@ -3,7 +3,7 @@ set -x
|
||||
if [ -f /snap/bin/vlc ]; then
|
||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||
snap run vlc $@
|
||||
snap run vlc "$@"
|
||||
else
|
||||
/usr/bin/vlc
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user