🔧 chore: better implementation of the media copy link feature, fix Cliboard.copyAsync() always returning an error

This commit is contained in:
retrozinndev
2025-09-01 20:51:03 -03:00
parent 082a1aface
commit 8b96ba9bf7
5 changed files with 137 additions and 87 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ class Clipboard extends GObject.Object {
const stderr = Gio.DataInputStream.new(proc.get_stderr_pipe()!);
if(!proc.wait_check()) {
if(!proc.wait_check(null)) {
try {
const [err, ] = stderr.read_upto('\x00', -1);
console.error(`Clipboard: An error occurred while copying text. Stderr: ${err}`);