From 38a60df40b342d8bae802093aed5036db66f5834 Mon Sep 17 00:00:00 2001 From: Julius Zint Date: Wed, 11 Aug 2021 19:32:10 +0200 Subject: [PATCH] Set the MIME-Type to text/plain when using wl-copy on wayland. If unset, wl-copy will try to guess the MIME-Type based on the data. For some reason this did not work on my machine and i was unable to paste passwords in Firefox. --- src/cli/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/Utils.cpp b/src/cli/Utils.cpp index 7354be764..df9643412 100644 --- a/src/cli/Utils.cpp +++ b/src/cli/Utils.cpp @@ -269,7 +269,7 @@ namespace Utils #ifdef Q_OS_UNIX if (QProcessEnvironment::systemEnvironment().contains("WAYLAND_DISPLAY")) { - clipPrograms << qMakePair(QStringLiteral("wl-copy"), QStringLiteral("")); + clipPrograms << qMakePair(QStringLiteral("wl-copy"), QStringLiteral("-t text/plain")); } else { clipPrograms << qMakePair(QStringLiteral("xclip"), QStringLiteral("-selection clipboard -i")); }