Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the MIME-Type to text/plain when using wl-copy on wayland. #6832

Merged
merged 1 commit into from
Aug 16, 2021

Conversation

juliuszint
Copy link
Contributor

@juliuszint juliuszint commented Aug 11, 2021

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.

Testing strategy

This change was tested in the following way:

  1. I opened a database with keepassxc-cli databasename.kdbx
  2. I used the clip command to copy a password to the clipboard
  3. I used wl-paste -l to determine what MIME-Type was used.

The output before i applied this patch:

$ wl-paste -l
n��

The output after i applied this patch:

wl-paste -l
text/plain
text/plain;charset=utf-8
TEXT
STRING
UTF8_STRING

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

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.
@droidmonkey droidmonkey added this to the v2.7.0 milestone Aug 11, 2021
@droidmonkey droidmonkey merged commit 38a60df into keepassxreboot:develop Aug 16, 2021
@juliuszint juliuszint deleted the fix-wlcopy branch August 16, 2021 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants