Files
voculinux/activate-vocalinux.sh
T
Jatin K MalikandGitHub d265607d40 feat: Add comprehensive logging system with UI for debugging text injection issues (#31)
* feat: Add comprehensive logging system with UI for debugging

🔍 New Logging Features:
- Add LoggingManager for centralized log capture and management
- Add LoggingDialog with real-time log viewing, filtering, and export
- Add 'View Logs' menu item to system tray for easy access
- Support log filtering by level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
- Support log filtering by module name
- Export logs to text files with applied filters
- Auto-scroll functionality for real-time log monitoring
- Log statistics and management (clear logs, view counts)

🐛 Enhanced Text Injection Debugging:
- Add detailed logging for text injection process
- Log target window information (name, class, PID, process)
- Log injection chunks and retry attempts
- Add timeout handling with detailed error messages
- Log environment detection and tool selection
- Enhanced error reporting with stack traces

🎯 UI Improvements:
- Integrated logging dialog with GTK interface
- Color-coded log levels for easy identification
- Real-time log updates in the UI
- Export functionality with file chooser dialog
- Status bar showing log statistics
- Non-modal dialog for continuous monitoring

📁 New Files:
- src/vocalinux/ui/logging_manager.py - Core logging management
- src/vocalinux/ui/logging_dialog.py - GTK logging viewer dialog

This will help debug text injection issues in applications like TextEdit
and terminal where voice typing may not work as expected.

* fix: Improve logging dialog UI layout and add clipboard functionality

🎨 UI Layout Improvements:
- Increase dialog default size from 900x600 to 900x700
- Set minimum content height for scrolled window to 400px
- Enable vertical and horizontal expansion for text view and scrolled window
- Ensure log text area takes up most of the available dialog space

📋 Clipboard Functionality:
- Add 'Copy All' button to dialog for easy log sharing
- Implement clipboard copy with formatted headers and timestamps
- Add user feedback messages for successful/failed copy operations
- Include line count information in success messages
- Handle empty log cases gracefully

🔧 Technical Improvements:
- Proper GTK clipboard integration using Gdk.SELECTION_CLIPBOARD
- Error handling for clipboard operations
- Formatted clipboard content with metadata headers
- Thread-safe clipboard operations

This fixes the issue where the log text area was too short and users
could barely see 2 lines despite having plenty of vertical space available.
The new layout ensures the text view expands to fill the available space,
and the clipboard functionality makes it easy to share logs for debugging.
2025-06-23 17:44:47 -05:00

6 lines
223 B
Bash
Executable File

#!/bin/bash
# This script activates the Vocalinux virtual environment
source "$(dirname "$(realpath "$0")")/venv/bin/activate"
echo "Vocalinux virtual environment activated."
echo "To start the application, run: vocalinux"