-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun-dev.sh
More file actions
executable file
·22 lines (16 loc) · 874 Bytes
/
run-dev.sh
File metadata and controls
executable file
·22 lines (16 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# TalkType Development Runner
# Uses venv for Python packages but system PyGObject
cd "$(dirname "$0")"
# Enable dev mode to show both GTK and extension trays
export DEV_MODE=1
# Force X11 backend (via XWayland) to enable window positioning
# Native Wayland doesn't allow apps to position their own windows
export GDK_BACKEND=x11
# Set PYTHONPATH to find talktype module AND system PyGObject
export PYTHONPATH="./src:/usr/lib64/python3.14/site-packages:/usr/lib/python3.14/site-packages"
# Set LD_LIBRARY_PATH so ctranslate2/faster-whisper can find cuDNN libs bundled
# in the venv. Without this, CUDA falls back to CPU when launched from desktop/autostart.
export LD_LIBRARY_PATH=".venv/lib64/python3.14/site-packages/ctranslate2.libs:.venv/lib/python3.14/site-packages/nvidia/cudnn/lib"
# Run with venv Python
exec .venv/bin/python -m talktype.tray "$@"