mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-22 18:52:46 +01:00
nheko: handle other flags than --profile too
This commit is contained in:
parent
f261a8744f
commit
7a82ddd0e0
@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
# USAGE: "nheko default" for the default profile or whatever profile is
|
||||
# desired as I never run it without the profile flag
|
||||
|
||||
# TODO: Handle --help & --version flags
|
||||
|
||||
# In case of unexplained crashing add the --compact flag!
|
||||
# desired.
|
||||
|
||||
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
|
||||
|
@ -1,10 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
# Nheko flatpak with Tor
|
||||
# USAGE: "nheko default" for the default profile or whatever profile is
|
||||
# desired as I never run it without the profile flag
|
||||
|
||||
# TODO: Handle --help & --version flags
|
||||
|
||||
# desired
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user