fix(plugin): update copy button to use wrapper script path

This commit is contained in:
2026-06-28 20:56:40 +08:00
parent b98528fbaf
commit e3c3ed54c6
@@ -137,12 +137,12 @@ export default function MainPanel({
async function handleCopyLaunchOption() { async function handleCopyLaunchOption() {
try { try {
await navigator.clipboard.writeText("mangohud %command%") await navigator.clipboard.writeText("~/deckyvault-mangohud.sh %command%")
setCopiedLaunchOpt(true) setCopiedLaunchOpt(true)
setTimeout(() => setCopiedLaunchOpt(false), 2000) setTimeout(() => setCopiedLaunchOpt(false), 2000)
} catch { } catch {
const ta = document.createElement("textarea") const ta = document.createElement("textarea")
ta.value = "mangohud %command%" ta.value = "~/deckyvault-mangohud.sh %command%"
document.body.appendChild(ta) document.body.appendChild(ta)
ta.select() ta.select()
document.execCommand("copy") document.execCommand("copy")