Posts: 12,461
Joined: Oct 2014
Reputation:
601
2017-11-16, 15:28
(This post was last modified: 2017-11-16, 15:29 by DarrenHill.)
If you have SSH access then you may be able to do it that way.
SSH in, then stop kodi (systemctl stop kodi), edit your file (use nano or whatever editor you prefer) then restart kodi again (systemctl start kodi).
If you're on LibreElec the above should work. If you're on OSMC I think you have to replace kodi with mediacenter, but that's from a quick google search (I know the LE one works as I run LE on my Pi's, can't personally vouch for the OSMC one). Of course if you're on Raspbian or another "full" Linux then you can just do it directly when Kodi isn't running.
Posts: 12,461
Joined: Oct 2014
Reputation:
601
2017-11-16, 23:53
(This post was last modified: 2017-11-16, 23:56 by DarrenHill.)
It's connecting to the OS underneath Kodi. In LibreElec it's minimal and fairly locked down, but it is there.
When you boot up you'll notice you get two splash screens, firstly LibreElec then kodi. The first one is the OS's and the second is Kodi's after it loads. It's what the base part of LibreElec actually is (and as it's screen says) - "just enough OS for Kodi".
All those commands do are to stop and start kodi from the OS level login (the SSH connection). As kodi isn't running then there should be nothing to lock down or interfere with editing the files, presuming they're not in one of the read only bits of the file system.
Posts: 124
Joined: May 2014
Reputation:
1
I was just revisiting this to do the same thing again on my new Rpi4 and Kodi install.
Despite reading through this thread I can't figure out how I managed to edit the xml files and successfully upload them because the system won't let me edit or upload xml files. The transfers or edits fail.
What do I have to do to be able to edit properly?
Posts: 8,966
Joined: Feb 2011
Reputation:
426
In general the OS and kodi parts of libreelec are readonly.
But /storage is writeable and certain directories are used in preference to the system ones.
An addon (like estuary) in /storage/.kodi/addons will be used in preference to the system once,
so you can copy it there and edit it.