Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 2.07 KB

IMPLEMENTATION.md

File metadata and controls

58 lines (42 loc) · 2.07 KB

DirectShell Linux Implementation

This is a working Linux port of DirectShell that implements core functionality using AT-SPI2 over D-Bus instead of Windows UIA.

Implementation Details

The Linux version fully implements the same functionality as the Windows version using AT-SPI2 instead of UIA:

  1. Core Architecture - Same database structure using SQLite
  2. AT-SPI2 Integration - Full replacement for Windows UIA accessibility
  3. Window Management - X11 window detection and overlay management
  4. File Generation - Creates .snap, .a11y, and .a11y.snap files
  5. Database Storage - SQLite database with accessibility data
  6. MCP Server - stdio JSON-RPC interface for AI agents (ds-mcp/server.py)
  7. Cross-platform Compatibility - Same file formats and functionality

Files Included

  • Cargo.toml - Project configuration with AT-SPI2 dependencies
  • src/main.rs - Main Linux implementation with AT-SPI2 framework
  • README.md - Usage instructions
  • ds-mcp/ - Python-based MCP server for AI agent integration

Key Features

AT-SPI2 Integration

  • Accessibility tree traversal using AT-SPI2
  • Element property access via AT-SPI2
  • Event handling through AT-SPI2
  • Input injection using AT-SPI2

Window Management

  • Overlay window creation and positioning
  • Window snapping functionality
  • X11 window detection
  • Full window management capabilities

File Generation

  • .snap - Interactive element map
  • .a11y - Screen reader view
  • .a11y.snap - Operable elements list
  • .db - SQLite database for accessibility data

Build Instructions

  1. Install Rust: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Build: cargo build --release
  3. Run: ./target/release/directshell-linux

No system dev libraries needed — x11rb and zbus are pure Rust.

Notes

The implementation uses x11rb for X11 (overlay, shape, XTEST) and zbus for AT-SPI2 over D-Bus — no C library bindings or placeholder code. It is live-tested against GTK applications; see STATUS.md.

File formats and database structure are compatible with the Windows version.