From 637cc7610b3ddaa6a6f4c210206533ea6544dce9 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@robotics.uk.to> Date: Fri, 30 Sep 2016 17:57:51 +0100 Subject: [PATCH] Use username as default tox nick --- src/freedombone-app-tox | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index 2f27771ca..9243b93cb 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -51,12 +51,14 @@ QTOX_COMMIT='27a628a3789fca4f31516c3982e580052dd3c773' function run_client_tox { # 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 chown -R ${USER}:${USER} /home/${USER}/.config toxid -u ${USER} -n data + toxid --setuser ${USER} 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 { -- GitLab