csh

Adding Kodi Login Option

Trisquel GNU/Linux has XBMC, but not Kodi. Installing its XBMC package puts an option on the login screen to use no desktop environment and just XBMC. This provides a more complete experience without the distraction of unnecessary desktop software. Unfortunately, XBMC is a very old version of Kodi, and Kore, the remote control app for Kodi on Replicant, will not work with XBMC.

Fortunately, there is a way to get the latest version of Kodi without accidentally installing proprietary software, and it should work on any GNU/Linux OS.

Install Kodi

  1. Install Guix. See GNU Guix Reference Manual: Binary Installation.
  2. guix package --install kodi

Add Login Entry

  1. Find XBMC login setting: find / -name 'XBMC.desktop'
  2. Go to it. In my case: cd /usr/share/xsessions/
  3. Make a copy for Kodi: cp XBMC.desktop Kodi.desktop
  4. Edit Kodi.desktop, replacing xbmc-standalone with Guix's kodi-standalone: sed -i 's|xbmc-standalone|/gnu/store/kmj9rm1ygsf702x3cxhy78fi960psdfz-profile/bin/kodi-standalone|g' Kodi.desktop
  5. Edit Kodi.desktop renaming XBMC to Kodi: sed -i 's|XBMC|Kodi|g' Kodi.desktop

Kodi should now be an option in your display manager. To log into Kodi, log out and select the Trisquel logo next to your name. Choose Kodi from the menu.

Thanks to Marius Bakke