mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-14 08:50:08 -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
|
||||
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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user