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
kodias the command, nothing happens.
- If I run
kodifrom 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/tty1just prints
ERROR: Unable to create GUI. Exitingin terminal.
setsid sh -c 'exec kodi <> /dev/tty1 >&0 2>&1'I get
ERROR: Unable to create GUI. Exitingon TTY1
sudo openvt -s -c 2 kodiwhich opens a black screen with
ERROR: Unable to create GUI. Exitingon default TTY7
/usr/bin/xinit /usr/local/bin/kodi -- :1which opens a black screen with blinking
_in top left corner on default TTY7