Kodi 18.5

Kodi (license GPLv2+, https://kodi.tv, https://github.com/xbmc) is probably the best media center and it runs on desktop, notebook and mobile clients (like Android). To install it on Arch Linux run:

pacman -Sy kodi libnfs

Kodi did have a Wayland back-end years back, but it has been abandoned after lacking support and maintenance. Now a GSOC student did revive the Wayland backend (https://github.com/pkerling/xbmc) and it got merged to Kodi mainline (available since Kodi 18), see pull request https://github.com/xbmc/xbmc/pull/12664. Especially on slow media center devices Kodi should offer on Wayland smoother animations and video playback.


In ArchLinux you can install kodi-wayland.

sudo pacman -Sy kodi-wayland

Alternatively you can enable in Kodi-Git Wayland support, it is only available if you compile it specifically for Wayland as it is not yet a run-time switch like in almost all other applications. Make sure Wayland works on your desktop, read KDE Plasma-Wayland.

Then make sure Wayland-protocols are installed.

sudo pacman -Sy wayland-protocols

Install from AUR Waylandpp.

yay waylandpp-git

Now install Kodi-git form AUR (https://aur.archlinux.org/pkgbase/kodi-git/#comment-609300):

yay kodi-git

When you are asked if you want to edit the PKGBUILD, confirm with YES and add 2 new lines (written in bold):

build() {
 cd "$_gitname"
   -DLIRC_DEVICE=/run/lirc/lircd \
   -DWITH_FFMPEG="yes" \
 make VERBOSE=1
 make preinstall

Kodi-git on Wayland is running very stable. Not sure, if it is possible to build Kodi for Wayland and X11 like most of the other software packages.

Probably there is soon a own package in AUR to make it even more convenient.


There are 3 possibilities to autostart:

  • Add e.g. to the KDE Desktop Plasma an auto start application in systemsettings
  • Enable e.g. in SDDM the kodi.desktop and auto login, read SDDM (Wayland Dev)
  • Direct boot to kodi, disable login managers like SDDM and enable the kodi.service (doesn’t work for Wayland yet)


  • Media Sources
    • Missing Movies
      • Shows you the movies and series with a wrong file name, that cannot be scrapped and added to the library.
  • Script
    • Library Auto Update
      • Automatically updates regularly your library

Exclude Files

 $ nano /home/USERNAME/.kodi/userdata/advancedsettings.xml<advancedsettings>

Buffer/Caching of Network content

$ nano /home/USERNAME/.kodi/userdata/advancedsettings.xml 
   <!--- The three settings will go in this space, between the two network tags. --->

Library Update in Console

Via the webserver component of Kodi you can trigger library updates.

Clean Library in Terminal

$ curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Clean", "id": "mybash"}' -H 'content-type: application/json;' http://<User>:<Password>@<hostname>:<port>/jsonrpc

Update Library in Terminal

$ curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://<User>:<Password>@<hostname>:<port>/jsonrpc

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.