Skip to content

wl-copy detects PHP code as application/code, causing applications unable to paste #261

@fishBone000

Description

@fishBone000

Run this command: echo "<?php echo('hi') ?>" | wl-copy

wl-copy detects the content as application/x-php: wl-paste --list-types shows application/x-php only. This causes applications unable to paste the content as text. I tried pasting it in Firefox, KWrite, Alacritty, none of them worked.

I discussed it with KDE devs, original discussion thread is here.

I and the dev thinks it would be better if wl-copy provides types like text/plain, TEXT e.t.c. as well, since the content is of course textual.

E.g.:
wl-paste --list-types shows sth like:

text/plain
text/plain;charset=utf-8
TEXT
STRING
UTF8_STRING
application/x-php

instead of:

application/x-php

The applications then should choose which type to use on its own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions