From 44dbdcb034776b68581e6a3cf6abc7576605268a Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sat, 21 Jun 2025 19:38:22 -0400 Subject: [PATCH] Fix OnionShare persistent arg --- ci/test-e2e.sh | 4 +++- voxvera/cli.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/test-e2e.sh b/ci/test-e2e.sh index f6200e8..87fa433 100755 --- a/ci/test-e2e.sh +++ b/ci/test-e2e.sh @@ -30,7 +30,9 @@ if [ "${VOXVERA_E2E_OFFLINE:-}" != "1" ]; then sleep 10 # Start OnionShare - onionshare-cli --website --public --persistent dist/demosite >"$LOG_DIR/onionshare.log" 2>&1 & + onionshare-cli --website --public \ + --persistent ci/.onionshare-session \ + dist/demosite >"$LOG_DIR/onionshare.log" 2>&1 & OS_PID=$! # Wait for URL diff --git a/voxvera/cli.py b/voxvera/cli.py index 91ab9b3..2d0626a 100644 --- a/voxvera/cli.py +++ b/voxvera/cli.py @@ -346,7 +346,8 @@ def serve(config_path: str): logfile = dir_path / 'onionshare.log' cmd = [ - 'onionshare-cli', '--website', '--public', '--persistent', + 'onionshare-cli', '--website', '--public', + '--persistent', str(dir_path / '.onionshare-session'), '--external-tor-socks-port', socks, '--external-tor-control-port', ctl, str(dir_path)