Kodi - Unable to create GUI: Exiting

According to https://www.freshports.org/multimedia/kodi

Runtime dependencies:
  1. update-desktop-database : devel/desktop-file-utils
  2. python3.9 : lang/python39
  3. x11.pc : x11/libX11
  4. xext.pc : x11/libXext
  5. xrandr.pc : x11/libXrandr

When you install kodi, should these dependencies also get installed? Also does kodi require xorg?

After installing Kodi on a pristine 13.2 system I get the Unable to create GUI: Exiting msg. That link does not help as it's for Wndows, but obviously some graphics drivers are missing, although after installing graphics/drm-kmod and x11/xorg, the same error occurred.

What else do I need to install?
 
I found I could run Kodi from twm after running startx, but I would like it to run automatically from startx. I thought I might be able to do that via an 'autostart' function, but don't see anything like this in /usr/local/share/X11/twm/system.twmrc. I suspect there must be some way to autostart programs from twm.
 
This .xinitrc seemed to work:-

Code:
k-launch-session dbus-launch --exit-with-session twm
exec kodi
 

 
After some searching I thought I would need to autologin using /etc/gettytab and came across this post, but I suspect it no longer applies since I can't such an entry in https://github.com/lattera/freebsd/blob/master/etc/gettytab.

There is an autologin section
Code:
#
# autologin - automatically log in as root
#

autologin|al.9600:\
    :al=root:tc=std.9600:
al.19200:\
    :al=root:tc=std.19200:
al.38400:\
    :al=root:tc=std.38400:
al.57600:\
    :al=root:tc=std.57600:
al.115200:\
    :al=root:tc=std.115200:
al.230400:\
    :al=root:tc=std.230400:

but can't figure out how to use it.

gettytab() is pretty cryptic and doesn't really explain how to use it. It's interesting to read that

The termcap(5) format is horrid, something more rational should have
been chosen.

I'd suggest that gettytab is just as bad.
 
Back
Top