Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tauri: copy to clipboard #4528

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

tauri: copy to clipboard #4528

wants to merge 4 commits into from

Conversation

Septias
Copy link
Contributor

@Septias Septias commented Jan 21, 2025

No description provided.

@@ -348,8 +348,8 @@ class TauriRuntime implements Runtime {
writeClipboardText(text: string): Promise<void> {
return writeText(text)
}
writeClipboardImage(_path: string): Promise<void> {
throw new Error('Method not implemented.20')
writeClipboardImage(path: string): Promise<void> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Simon-Laux What values can path have? From my experiments, I saw absolute paths but I guess this can also bea relative blobdir path?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blobdir paths are always absolute - at least currently.

@Simon-Laux
Copy link
Member

Simon-Laux commented Jan 23, 2025

could you rebase it to merge into #4533?
so that the rust method can be inside of clipboard.rs and you can use the Error type in that file instead of doing the string conversion. (see https://tauri.app/develop/calling-rust/#error-handling)

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.

2 participants