mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-27 23:07:11 -05:00
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:
parent
304cb44d0d
commit
38a60df40b
@ -269,7 +269,7 @@ namespace Utils
|
|||||||
|
|
||||||
#ifdef Q_OS_UNIX
|
#ifdef Q_OS_UNIX
|
||||||
if (QProcessEnvironment::systemEnvironment().contains("WAYLAND_DISPLAY")) {
|
if (QProcessEnvironment::systemEnvironment().contains("WAYLAND_DISPLAY")) {
|
||||||
clipPrograms << qMakePair(QStringLiteral("wl-copy"), QStringLiteral(""));
|
clipPrograms << qMakePair(QStringLiteral("wl-copy"), QStringLiteral("-t text/plain"));
|
||||||
} else {
|
} else {
|
||||||
clipPrograms << qMakePair(QStringLiteral("xclip"), QStringLiteral("-selection clipboard -i"));
|
clipPrograms << qMakePair(QStringLiteral("xclip"), QStringLiteral("-selection clipboard -i"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user