Multiple instances of Kodi runnin under different profiles with SQL - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Multiple instances of Kodi runnin under different profiles with SQL (/showthread.php?tid=373747) |
Multiple instances of Kodi runnin under different profiles with SQL - nolos - 2023-07-10 Hey all, so in a nutshell, i'm trying to figure out how to run multiple instances of kodi on a single linux pc. To expand, I have addons that I want to be periodically updating that are dependent on the profile that is logged in and I have multiple profiles. So I want to have an instance where user A is logged in and the addons update hourly and report to the SQL DB, another instance where user B is logged in and the same addons update hourly for user B's library and report to the SQL DB, and so on. I just tried putting 3 instances of headless kodi in docker containers. The image said it is for nexus but the logs look like they are attempting to connect to the DB with an older naming convention which makes me think that part wasn't updated to Nexus. I don't want to risk it tearing up the DB. I thought about portable kodi but I think that only works for windows. I don't care if it's headless or a full install running 3 separate instances. The only thing I would like to avoid is spinning up multiple VMs to accomplish this. Anyone have any thoughts on how I can do this? Thanks. RE: Multiple instances of Kodi runnin under different profiles with SQL - izprtxqkft - 2023-07-10 you can tell kodi where it's home folder is with the environment variable KODI_DATA #!/usr/bin/env bash export KODI_DATA=/home/<username>/kodi1 kodi ----- #!/usr/bin/env bash export KODI_DATA=/home/<username>/kodi2 kodi RE: Multiple instances of Kodi runnin under different profiles with SQL - nolos - 2023-07-10 That would just let me specify the home folder for a single instance thought right? How would I do that for multiple profiles? RE: Multiple instances of Kodi runnin under different profiles with SQL - izprtxqkft - 2023-07-10 your normal kodi installation (on linux) puts everything per user in ~/.kodi (/home/<user>/.kodi) with that it overrides that path, so you can have a bash script (example above) that loads kodi from different locations so you can customize for /home/<user>/kodi1 then close it and do it again for kodi2, then everything is separate - addons, database, settings RE: Multiple instances of Kodi runnin under different profiles with SQL - Klojum - 2023-07-10 (2023-07-10, 16:02)nolos Wrote: i'm trying to figure out how to run multiple instances of kodi on a single linux pc. Simultaneously or one at a time? Using profiles, you'll need to install/update add-ons per profile. Profiles cannot share add-ons, as each profile has its own root folder. You can have multiple profiles share the same video/music databases, or use separate databases by including database names in the advancedsettings.xml file. |