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.
This commit is contained in:
Julius Zint 2021-08-11 19:32:10 +02:00 committed by Jonathan White
parent 304cb44d0d
commit 38a60df40b

View File

@ -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"));
}