Already deleted all Kodi's config file and reinstalled.
Kodi runs fine when run with
$this->bbcode_second_pass_code('', 'sudo kodi')
but fails when run with SYSTEMCTL
Latest packages.
This is whe systemctl status kodi output:
$this->bbcode_second_pass_code('', 'Jan 04 21:29:02 KRAKEN systemd[1]: Starting Starts an instance of Kodi...
Jan 04 21:29:02 KRAKEN systemd[1]: Started Starts an instance of Kodi.
Jan 04 21:29:03 KRAKEN kodi-standalone[4098]: ERROR: Unable to create application. Exiting
Jan 04 21:29:04 KRAKEN kodi-standalone[4098]: ERROR: Unable to create application. Exiting
Jan 04 21:29:05 KRAKEN kodi-standalone[4098]: ERROR: Unable to create application. Exiting
Jan 04 21:29:05 KRAKEN kodi-standalone[4098]: /usr/bin/kodi --standalone -l /run/lirc/lircd has exited in an unclean state 3 times in the last 3 seconds.')