Skip to content

Commit

Permalink
Merge pull request #254 from nik012003/master
Browse files Browse the repository at this point in the history
wayland: request text type to wl-paste
  • Loading branch information
asweigart authored Jun 18, 2024
2 parents 253e3cc + 5134a30 commit 287198a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyperclip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def copy_wl(text, primary=False):
p.communicate(input=text.encode(ENCODING))

def paste_wl(primary=False):
args = ["wl-paste", "-n"]
args = ["wl-paste", "-n", "-t", "text"]
if primary:
args.append(PRIMARY_SELECTION)
p = subprocess.Popen(args, stdout=subprocess.PIPE, close_fds=True)
Expand Down

0 comments on commit 287198a

Please sign in to comment.