nheko: handle other flags than --profile too

This commit is contained in:
Aminda Suomalainen 2024-08-21 10:39:52 +03:00
parent f261a8744f
commit 7a82ddd0e0
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 12 additions and 11 deletions

View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# USAGE: "nheko default" for the default profile or whatever profile is # USAGE: "nheko default" for the default profile or whatever profile is
# desired as I never run it without the profile flag # desired.
# TODO: Handle --help & --version flags
# In case of unexplained crashing add the --compact flag!
set -x set -x
flatpak run --env=LANGUAGE=fi:eo:en im.nheko.Nheko//master --compact --profile "$@" if [[ "$1" == -* ]]; then
flatpak run --env=LANGUAGE=fi:eo:en im.nheko.Nheko//master "$@"
else
flatpak run --env=LANGUAGE=fi:eo:en im.nheko.Nheko//master --compact --profile "$@"
fi
set +x set +x

View File

@ -1,10 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Nheko flatpak with Tor # Nheko flatpak with Tor
# USAGE: "nheko default" for the default profile or whatever profile is # USAGE: "nheko default" for the default profile or whatever profile is
# desired as I never run it without the profile flag # desired
# 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 --compact --profile "$@" if [[ "$1" == -* ]]; then
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master "$@"
else
flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC --env=all_proxy=socks5://127.0.0.1:9050/ im.nheko.Nheko//master --compact --profile "$@"
fi
set +x set +x