My system: Debian 11 / Xfce
To quickly insert the same text in different e-mails, I tried to create a keyboard shortcut using a xdotool type "text" command At first I tested this command in a terminal and I got the text displayed on the terminal screen alright. Then I used it to create a keyboard shortcut: it didn't work anymore and I had to replace it by sh -c 'xdotool type "text"' .
Why do I have to use sh -c to create a keyboard shortcut that will insert text in an e-mail?