[SOLVED] Reload Launcher from SSH

thank you!

i tried, and ended up with this changes:

launcherPid=`ps -ax | grep -m 1 "python run.py" | cut -d " " -f3`

maybe smth. windows-related feature/issue (i mean, i mostly use Windows OS).
BUT, after restart Launcher by the script, i need to use cut -d " " -f2 instead of cut -d " " -f3 … it’s weird…

BTW, i tried to use ‘xdotool’ to check “‘ctrl-alt-backspace’ X11 trick” , and it seems that it doesn’t work for me. i have this output:

cpi@clockworkpi:~$ xdotool getactivewindow getwindowpid
Error: Can't open display: (null)
Failed creating new xdo instance

[update]: just found a solution to it: execute in SSH

cpi@clockworkpi:~$ export DISPLAY=:0

and then i can use “xdotool”