I seem to be unable to make xdotool work. I'm trying to emulate keyboard shortcuts as Super+Left via external output. I looked it up and xdotool seems to do exactly that, emulate keyboard strokes. But when I run my script I get this error:
Qt: failed to retrieve the virtual modifier names from XKB
when running something like this from my code:
xdotool key super+Left
But if I do the same, and others shortcuts as (Ctrl+Alt+T), from a common terminal I get nothing at all as output, the process just finishes.
Obviously I have no expirience with this tool so probably I'm missing something but I can't figure out why and I don't see this error replicated anywhere.
Edit:
My "external output" is a python script that given circumstances executes different commands like this:
process = subprocess.Popen(command)
output, error = process.communicate()
I'm using Ubuntu 21.04.