This question already has an answer here:

On a fresh rasbian, I've installed kodi from the package manager. I had trouble with making kodi run at startup and after some tests I came to the conclusion than kodi won't start if run as the kodi user.

When run as the "pi" user (USER=pi in /etc/default/kodi), service kodi start does the job and I get a responding kodi interface. When run as the "kodi" user (USER=kodi in /etc/default/kodi), service kodi start does start kodi but it immediatly hangs: the webserver does not respond, keyboard commands do nothing...

The directory /home/kodi/.kodi/ does exist and contains the expected file hierarchy (addons/ media/ sounds/ system/ temp/ userdata/)

Note: This question is indeed a duplicate, and this answer solved my problem. But I wouldn't suggest to delete this question as it describes the issue more precisely I think and it will help others to find the linked solution.

marked as duplicate by Ghanima Feb 23 '16 at 18:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.