-
-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathhydrus_client.sh
More file actions
executable file
·38 lines (31 loc) · 990 Bytes
/
hydrus_client.sh
File metadata and controls
executable file
·38 lines (31 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
pushd "$(dirname "$0")" || exit 1
if [ ! -d "venv" ]; then
echo "You need to set up a venv! Check the running from source help for more info!"
popd || exit 1
exit 1
fi
if ! source venv/bin/activate; then
echo "The venv failed to activate, stopping now!"
popd || exit 1
exit 1
fi
# You can copy this file to 'hydrus_client-user.sh' and add in your own launch parameters here if you like. A git pull won't overwrite that filename.
# Just tack new hardcoded params on like this:
#
# python hydrus_client.py -d="/path/to/hydrus/db" "$@"
#
# The "$@" part also passes on any launch parameters this script was called with, so you can also just go--
#
# ./hydrus_client.sh -d="/path/to/hydrus/db"
#
# --depending on your needs!
#
# Also, if you need to put environment variables in this script, do it like this (before the program is booted!):
#
# export QT_QPA_PLATFORM=xcb
# unset WAYLAND_DISPLAY
#
python hydrus_client.py "$@"
deactivate
popd || exit