parcellite icon indicating copy to clipboard operation
parcellite copied to clipboard

avoid trimming quotes

Open ggrrll opened this issue 3 years ago • 2 comments

Hi,

I do not understand why it's trimming the quotes while pasting

thanks

ps: on L mint 20.3

ggrrll avatar Feb 16 '22 16:02 ggrrll

I need specific steps to get to the issue, what you expect and what you are getting. Also, be sure the trim options are as you expect in preferences. It is likely a setting, or if you are using xdotool (automatic paste) it may be an issue with the shell. This was pasted from Parcellite. onSubmit="return startUpload()" id="theform"

rickyrockrat avatar Feb 20 '22 17:02 rickyrockrat

Hi,

I moved to CopyQ, which seems to no issues (until now), but for the sake of debugging, I can tell you that these were my settings

image

and that the issue happens when pressing enter on an item in the history (pasting with ctrl + V is fine )

ggrrll avatar Feb 21 '22 10:02 ggrrll

I ran into this issue too, it's a problem caused by the unescaped xdotool call. If you copied just a single quote mark, you will get this log:

xdotool:'/bin/sh -c 'xdotool type "'"''
text:'''

which is worse than trimming, the app just crashes with segmentation fault.

But if the copied string still makes a valid xdotool call, such as aaa"bbb", as the quotes canceled each other out, you'll get:

xdotool:'/bin/sh -c 'xdotool type "aaa"bbb""''
text:'aaa"bbb"'

And xdotool get rid of the quotes when parsing the string, resulting a trimming behavior.

c88tm avatar Nov 16 '22 03:11 c88tm

Duplicate of #87

rickyrockrat avatar Jan 21 '24 22:01 rickyrockrat