diff --git a/bash/usr-local-bin/brave b/bash/usr-local-bin/brave index f3200ac..cefebdc 100755 --- a/bash/usr-local-bin/brave +++ b/bash/usr-local-bin/brave @@ -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 diff --git a/bash/usr-local-bin/chromium b/bash/usr-local-bin/chromium index 9ac6c9c..066fa41 100755 --- a/bash/usr-local-bin/chromium +++ b/bash/usr-local-bin/chromium @@ -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 diff --git a/bash/usr-local-bin/code b/bash/usr-local-bin/code index 3958668..53196ed 100755 --- a/bash/usr-local-bin/code +++ b/bash/usr-local-bin/code @@ -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 diff --git a/bash/usr-local-bin/codium b/bash/usr-local-bin/codium index c8f6c30..d3e3a5a 100755 --- a/bash/usr-local-bin/codium +++ b/bash/usr-local-bin/codium @@ -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 diff --git a/bash/usr-local-bin/deltachat b/bash/usr-local-bin/deltachat index 04e153f..484046f 100755 --- a/bash/usr-local-bin/deltachat +++ b/bash/usr-local-bin/deltachat @@ -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 diff --git a/bash/usr-local-bin/element b/bash/usr-local-bin/element index 68f0cd1..8d8b4ba 100755 --- a/bash/usr-local-bin/element +++ b/bash/usr-local-bin/element @@ -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 diff --git a/bash/usr-local-bin/element-tor b/bash/usr-local-bin/element-tor index 2c10386..d51657c 100755 --- a/bash/usr-local-bin/element-tor +++ b/bash/usr-local-bin/element-tor @@ -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 diff --git a/bash/usr-local-bin/fluffychat b/bash/usr-local-bin/fluffychat index e11700d..89a4a9c 100755 --- a/bash/usr-local-bin/fluffychat +++ b/bash/usr-local-bin/fluffychat @@ -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 diff --git a/bash/usr-local-bin/google-chrome b/bash/usr-local-bin/google-chrome index 5c9aaad..dd0c5a5 100755 --- a/bash/usr-local-bin/google-chrome +++ b/bash/usr-local-bin/google-chrome @@ -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 diff --git a/bash/usr-local-bin/kile b/bash/usr-local-bin/kile index 9fdf05c..8b16746 100755 --- a/bash/usr-local-bin/kile +++ b/bash/usr-local-bin/kile @@ -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 :(" diff --git a/bash/usr-local-bin/libreoffice b/bash/usr-local-bin/libreoffice index a049669..2663256 100755 --- a/bash/usr-local-bin/libreoffice +++ b/bash/usr-local-bin/libreoffice @@ -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 diff --git a/bash/usr-local-bin/meld b/bash/usr-local-bin/meld index b5c6c6f..f73b87d 100755 --- a/bash/usr-local-bin/meld +++ b/bash/usr-local-bin/meld @@ -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 :(" diff --git a/bash/usr-local-bin/microsoft-edge b/bash/usr-local-bin/microsoft-edge index 9ffd2b9..0163ab8 100755 --- a/bash/usr-local-bin/microsoft-edge +++ b/bash/usr-local-bin/microsoft-edge @@ -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 diff --git a/bash/usr-local-bin/microsoft-teams b/bash/usr-local-bin/microsoft-teams index bace13e..e6f5ed6 100755 --- a/bash/usr-local-bin/microsoft-teams +++ b/bash/usr-local-bin/microsoft-teams @@ -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 diff --git a/bash/usr-local-bin/mpv b/bash/usr-local-bin/mpv index 1d63083..fe7681d 100755 --- a/bash/usr-local-bin/mpv +++ b/bash/usr-local-bin/mpv @@ -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 :(" diff --git a/bash/usr-local-bin/nheko b/bash/usr-local-bin/nheko index b06391e..dfde703 100755 --- a/bash/usr-local-bin/nheko +++ b/bash/usr-local-bin/nheko @@ -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 diff --git a/bash/usr-local-bin/nheko-tor b/bash/usr-local-bin/nheko-tor index 68a120e..542533f 100755 --- a/bash/usr-local-bin/nheko-tor +++ b/bash/usr-local-bin/nheko-tor @@ -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 diff --git a/bash/usr-local-bin/nvim b/bash/usr-local-bin/nvim index ff004da..fd2feec 100755 --- a/bash/usr-local-bin/nvim +++ b/bash/usr-local-bin/nvim @@ -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 :(" diff --git a/bash/usr-local-bin/schildichat b/bash/usr-local-bin/schildichat index 4cd1f50..85d29fd 100755 --- a/bash/usr-local-bin/schildichat +++ b/bash/usr-local-bin/schildichat @@ -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 diff --git a/bash/usr-local-bin/schildichat-tor b/bash/usr-local-bin/schildichat-tor index eb317c8..edeac82 100755 --- a/bash/usr-local-bin/schildichat-tor +++ b/bash/usr-local-bin/schildichat-tor @@ -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 diff --git a/bash/usr-local-bin/signal-desktop b/bash/usr-local-bin/signal-desktop index f308216..9085fdc 100755 --- a/bash/usr-local-bin/signal-desktop +++ b/bash/usr-local-bin/signal-desktop @@ -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 diff --git a/bash/usr-local-bin/startplasma b/bash/usr-local-bin/startplasma index af23af8..e54aa71 100755 --- a/bash/usr-local-bin/startplasma +++ b/bash/usr-local-bin/startplasma @@ -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 diff --git a/bash/usr-local-bin/startsway b/bash/usr-local-bin/startsway index 4e4d31a..f43b61a 100755 --- a/bash/usr-local-bin/startsway +++ b/bash/usr-local-bin/startsway @@ -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 diff --git a/bash/usr-local-bin/steam b/bash/usr-local-bin/steam index 428d3a7..9809c76 100755 --- a/bash/usr-local-bin/steam +++ b/bash/usr-local-bin/steam @@ -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 diff --git a/bash/usr-local-bin/superproductivity b/bash/usr-local-bin/superproductivity index e122793..464f18b 100755 --- a/bash/usr-local-bin/superproductivity +++ b/bash/usr-local-bin/superproductivity @@ -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 diff --git a/bash/usr-local-bin/syncplay b/bash/usr-local-bin/syncplay index b7837f7..7a0357f 100755 --- a/bash/usr-local-bin/syncplay +++ b/bash/usr-local-bin/syncplay @@ -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 diff --git a/bash/usr-local-bin/vivaldi b/bash/usr-local-bin/vivaldi index a83ad52..c51aa1d 100755 --- a/bash/usr-local-bin/vivaldi +++ b/bash/usr-local-bin/vivaldi @@ -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 diff --git a/bash/usr-local-bin/vlc-snap b/bash/usr-local-bin/vlc-snap index 389aaa6..7244889 100755 --- a/bash/usr-local-bin/vlc-snap +++ b/bash/usr-local-bin/vlc-snap @@ -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