0

I am trying to create a desktop shortcut to start kodi on my Raspberry Pi running Raspberry Pi OS. My problem is:

  • If I create a desktop shortcut with kodi as the command, nothing happens.
  • If I run kodi from a normal terminal I get ERROR: Unable to create GUI. Exiting.

To actually start kodi, I need to switch to a TTY1 virtual console (Ctrl + Alt + F1) and then type kodi. It starts and runs perfectly fine.

I am wondering if I could somehow change my shortcut command to start and switch to kodi on TTY1 virtual console? Or any other way to make it work?


I have tried (from normal terminal on TTY7):

  • kodi > /dev/tty1 just prints ERROR: Unable to create GUI. Exiting in terminal.
  • setsid sh -c 'exec kodi <> /dev/tty1 >&0 2>&1' I get ERROR: Unable to create GUI. Exiting on TTY1
  • sudo openvt -s -c 2 kodi which opens a black screen with ERROR: Unable to create GUI. Exiting on default TTY7
  • /usr/bin/xinit /usr/local/bin/kodi -- :1 which opens a black screen with blinking _ in top left corner on default TTY7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.