0

this React code

import { message } from "@tauri-apps/plugin-dialog";
import { writeText } from "@tauri-apps/plugin-clipboard-manager";
async function copy() {
 try {
 await writeText(text);
 await message("Text copied to clipboard!", {
 title: "Success",
 kind: "info",
 });
 } catch (e) {
 await message(`Error: ${e instanceof Error ? e.message : String(e)}`, {
 title: "Error",
 kind: "error",
 });
 }
 }

returns message:

Error: clipboard-manager.write_text not allowed. Permissions associated with this command: clipboard-manager:allow-write-text

How to fix this?

James Z
12.3k10 gold badges28 silver badges50 bronze badges
asked Jul 27, 2025 at 6:00
2

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.