Skip to content

feat: add opener2 plugin wrapping tauri-plugin-opener#3034

Merged
yujonglee merged 8 commits intomainfrom
devin/1768356817-opener2-plugin
Jan 14, 2026
Merged

feat: add opener2 plugin wrapping tauri-plugin-opener#3034
yujonglee merged 8 commits intomainfrom
devin/1768356817-opener2-plugin

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 14, 2026

Summary

Adds a new opener2 plugin that wraps Tauri's tauri-plugin-opener. The plugin exposes the same set of commands as the underlying opener plugin without scope handling.

The plugin includes:

  • open_url - Open a URL with the default or specified browser
  • open_path - Open a file/path with the default or specified application
  • reveal_item_in_dir - Reveal a file in the system file manager
  • Extension trait pattern (Opener2PluginExt) for accessing the plugin from app handles
  • Auto-generated TypeScript bindings and permissions
  • Plugin registration in the desktop app

Note: Scope handling is intentionally skipped for now per requirements.

Updates since last revision

Migrated all @tauri-apps/plugin-opener usages in the desktop app to use the new opener2 plugin:

  • Replaced imports in 13 files across apps/desktop/src
  • Updated function calls to use new API pattern: openerCommands.openUrl(url, null), openerCommands.openPath(path, null), openerCommands.revealItemInDir(path)
  • Cleaned up capabilities/default.json - removed old opener permissions (opener:default, opener:allow-open-url, opener:allow-open-path) and kept only opener2:default
  • Fixed TypeScript compilation error: renamed with parameter to openWith since with is a reserved keyword in JavaScript/TypeScript
  • Resolved merge conflict with main branch (incorporated fs2:default permission)

Review & Testing Checklist for Human

  • Security review: Verify the removal of scoped opener permissions is acceptable. Old config restricted URLs to https://**, mailto:*, obsidian://** and paths to $DATA/hyprnote/**/*, $APPDATA/**/*, $DOWNLOAD/**/*. The new opener2:default has no such restrictions.
  • Verify the app builds and runs: ONBOARDING=0 pnpm -F desktop tauri dev
  • Test openUrl - auth sign-in, billing checkout, mailto links, LinkedIn profiles, changelog link
  • Test openPath - exported PDFs, transcripts, local STT models directory
  • Test revealItemInDir - session reveal in finder, data source reveal

Notes

Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
@netlify
Copy link

netlify bot commented Jan 14, 2026

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit 388698a
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69671d78da207c0007c85981
😎 Deploy Preview https://deploy-preview-3034--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 14, 2026

Deploy Preview for howto-fix-macos-audio-selection canceled.

Name Link
🔨 Latest commit 388698a
🔍 Latest deploy log https://app.netlify.com/projects/howto-fix-macos-audio-selection/deploys/69671d796386820008da0316

@netlify
Copy link

netlify bot commented Jan 14, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 388698a
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69671d78decf8000081cdac9
😎 Deploy Preview https://deploy-preview-3034--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

devin-ai-integration bot and others added 6 commits January 14, 2026 03:32
- Add open_url, open_path, and reveal_item_in_dir commands
- Remove placeholder ping command
- Update TypeScript bindings with new commands
- Update permissions for new commands

Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
@yujonglee yujonglee merged commit c1a6527 into main Jan 14, 2026
23 of 24 checks passed
@yujonglee yujonglee deleted the devin/1768356817-opener2-plugin branch January 14, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments