Skip to content

Portable Layout & Data ​

VoiceDrop stores configuration, Telethon sessions, and its Python virtual environment next to the executable whenever the application folder is writable.

Folder structure ​

text
VoiceDrop/
  voice-drop[.exe]
  uv[.exe]              (ships with the archives; builds the runtime)
  ffmpeg[.exe]          (optional: bundled ffmpeg instead of PATH, or under bin/)
  data/config.json      (created on first run)
  data/accounts/*.session
  data/instance.lock
  runtime/python/       (auto-created venv with telethon)

Copy the folder to another machine and your credentials, logged-in accounts, and runtime move with it.

Read-only install fallback ​

When the executable's directory is not writable — such as a macOS .app bundle inside /Applications or a mounted Linux AppImage — data/ and runtime/ automatically fall back to the per-user data directory:

OSFallback directory
Windows%APPDATA%\VoiceDrop
macOS~/Library/Application Support/VoiceDrop
Linux$XDG_DATA_HOME/voicedrop (or ~/.local/share/voicedrop when unset)

Tool discovery order ​

For companion tools (ffmpeg and uv), VoiceDrop checks:

  1. bin/ next to the executable (<app_dir>/bin/<tool>), and uv directly next to the executable
  2. Bundled macOS Contents/Resources/bin/ or Linux /usr/lib/voicedrop/bin/
  3. System PATH

Locking & isolation ​

  • Single app instance: data/instance.lock prevents two VoiceDrop windows from running simultaneously against the same session files; a second launch exits immediately.
  • Session file serialization: tg_send.py acquires <session>.lock next to each .session database and retries database is locked errors so concurrent commands on the same session do not collide, while separate accounts never block each other.
  • No ambient state: VoiceDrop reads only its own data/config.json and data/accounts/ directory and ignores external Telegram desktop sessions or global Python packages.