Figured with the launch KODI from the average user. For this you need to add it to the group. To run the command
"sudo usermod -a-G audio,video,disk,input,tty user"
And edit the file /boot/hdmi.sh replace 1 to 0 . The line after editing should be
"echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink"
After these steps, you can launch KODI from the menu.