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

"Pasteboard contained types ( ), but service expects types" on MacOS #12619

Open
S1lander opened this issue Feb 4, 2025 · 0 comments
Open

"Pasteboard contained types ( ), but service expects types" on MacOS #12619

S1lander opened this issue Feb 4, 2025 · 0 comments

Comments

@S1lander
Copy link

S1lander commented Feb 4, 2025

I am maintaining a Tauri app that's solely meant to be a Windows Desktop App, and I've been developing mostly on a Windows machine, but recetly switched over to MacOS. I have this function that I am invoking from the frontend:

#[tauri::command]
fn select_path_in_file_explorer(pathname: &str) {
    let formatted_path = pathname.replace('/', "\\");
    println!("Selecting path: {}", formatted_path);
    showfile::show_path_in_file_manager(formatted_path);
}

The argument pathname includes the filetype extension, which gives me this error/output on MacOS (works fine this way on Windows):

Selecting path: \Users\user\my folder\my_file.pdf
2025-02-04 20:33:38.948 myApp[20816:209182] Pasteboard contained types (
), but service expects types (
    "public.utf8-plain-text",
    "dyn.agu8y6y4grf0gn5xbrzw1gydcr7u1e3cytf2gn",
    "public.url",
    "com.apple.cocoa.pasteboard.multiple-text-selection"
)

I am a bit confused by the error contained types, but service expects types.
What am I doing wrong here? Thanks!

@FabianLars FabianLars transferred this issue from tauri-apps/awesome-tauri Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants