rickyrockrat / parcellite

GNU General Public License v3.0
220 stars 29 forks source link

avoid trimming quotes #68

Closed ggrrll closed 6 months ago

ggrrll commented 2 years ago

Hi,

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

thanks

ps: on L mint 20.3

rickyrockrat commented 2 years ago

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"

ggrrll commented 2 years ago

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 )

c88tm commented 1 year ago

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.

rickyrockrat commented 6 months ago

Duplicate of #87