Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

V2 Tauri integration

Open ConnorYoh opened this issue 5 months ago โ€ข 1 comments

Description of Changes

Please provide a summary of the changes, including:

Add PDF File Association Support for Tauri App

๐ŸŽฏ Features Added

  • PDF file association configuration in Tauri
  • Command line argument detection for opened files
  • Automatic file loading when app is launched via "Open with"
  • Cross-platform support (Windows/macOS)

๐Ÿ”ง Technical Changes

  • Added fileAssociations in tauri.conf.json for PDF files
  • New get_opened_file Tauri command to detect file arguments
  • fileOpenService with Tauri fs plugin integration
  • useOpenedFile hook for React integration
  • Improved backend health logging during startup (reduced noise)

๐Ÿงช Testing

See

  • https://v2.tauri.app/start/prerequisites/

  • DesktopApplicationDevelopmentGuide.md

    # Test file association during development:
    
    cd frontend
    npm install
    cargo tauri dev --no-watch -- -- "path/to/file.pdf"
    

For production testing:

  1. Build: npm run tauri build
  2. Install the built app
  3. Right-click PDF โ†’ "Open with" โ†’ Stirling-PDF

๐Ÿš€ User Experience

  • Users can now double-click PDF files to open them directly in Stirling-PDF
  • Files automatically load in the viewer when opened via file association
  • Seamless integration with OS file handling

Checklist

General

Documentation

UI Changes (if applicable)

  • [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR)

Testing (if applicable)

  • [ ] I have tested my changes locally. Refer to the Testing Guide for more details.

ConnorYoh avatar Jul 01 '25 16:07 ConnorYoh

โœ… Frontend License Check Passed

All frontend licenses have been validated and no compatibility warnings were detected.

The frontend license report has been updated successfully.

stirlingbot[bot] avatar Nov 05 '25 10:11 stirlingbot[bot]

โœ… Frontend License Check Passed

All frontend licenses have been validated and no compatibility warnings were detected.

The frontend license report has been updated successfully.

stirlingbot[bot] avatar Nov 05 '25 10:11 stirlingbot[bot]