Use username as default tox nick

This commit is contained in:
Bob Mottram 2016-09-30 17:57:51 +01:00
parent 8f2163119d
commit 637cc7610b
1 changed files with 4 additions and 2 deletions

View File

@ -51,12 +51,14 @@ QTOX_COMMIT='27a628a3789fca4f31516c3982e580052dd3c773'
function run_client_tox { function run_client_tox {
# create a tox user # create a tox user
if [ ! -f /home/${USER}/.config/tox/data.tox ]; then USER_TOX_FILE=/home/${USER}/.config/tox/data.tox
if [ ! -f $USER_TOX_FILE ]; then
mkdir -p /home/${USER}/.config/tox mkdir -p /home/${USER}/.config/tox
chown -R ${USER}:${USER} /home/${USER}/.config chown -R ${USER}:${USER} /home/${USER}/.config
toxid -u ${USER} -n data toxid -u ${USER} -n data
toxid --setuser ${USER}
fi fi
toxic -f /home/${USER}/.config/tox/data.tox --force-tcp --SOCKS5-proxy 127.0.0.1 9050 toxic -f $USER_TOX_FILE --force-tcp --SOCKS5-proxy 127.0.0.1 9050
} }
function install_interactive_tox { function install_interactive_tox {