From a8da23ab1d84f4b2f0246fa19d7be9e234f0bd09 Mon Sep 17 00:00:00 2001 From: pax Date: Sun, 5 Apr 2026 15:38:28 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20file=20URI=20clipboard=20=E2=80=94=20prop?= =?UTF-8?q?er=20format=20with=20CRLF,=20no=20stray=20arg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- booru_viewer/gui/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/booru_viewer/gui/app.py b/booru_viewer/gui/app.py index 82f6471..f67d10c 100644 --- a/booru_viewer/gui/app.py +++ b/booru_viewer/gui/app.py @@ -1968,9 +1968,9 @@ class BooruApp(QMainWindow): with open(path, "rb") as f: subprocess.run(["wl-copy", "--type", _MIMES[ext]], stdin=f, timeout=10) else: - # Videos/other: copy as file URI - uri = f"file://{Path(path).resolve()}" - subprocess.run(["wl-copy", "--type", "text/uri-list", uri], input=uri.encode(), timeout=5) + # Videos/other: copy as file URI for file manager paste + uri = f"file://{Path(path).resolve()}\r\n" + subprocess.run(["wl-copy", "--type", "text/uri-list"], input=uri.encode(), timeout=5) self._status.showMessage(f"Copied to clipboard: {Path(path).name}") return except Exception as e: