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:
The applications then should choose which type to use on its own.
Run this command:
echo "<?php echo('hi') ?>" | wl-copywl-copydetects the content asapplication/x-php:wl-paste --list-typesshowsapplication/x-phponly. 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-copyprovides types liketext/plain,TEXTe.t.c. as well, since the content is of course textual.E.g.:
wl-paste --list-typesshows sth like:instead of:
The applications then should choose which type to use on its own.