This is done by design here: https://github.com/MediaPortal/Medi...l/Setup/MP2-Setup/Features/Server.wxs#L31-L35
For the migration: Could the database plugins check for the database subfolder first and use the other one as a fallback?Only issue I see would be "migration" of former installations, as the expected folder is no longer the same.
Are those changes the ones you proposed? https://github.com/MediaPortal/MediaPortal-2/commit/9f05459ae6e62fa483842fe84d85d1bc6fb7c410Absolutely!
But I think it is not only the InitializationCommand. We have to do two things:
In SQLiteSettings just delete the part about locking_mode (normal is standard) so that it looks like:
private const string DEFAULT_INITIALIZATION_COMMAND = "PRAGMA wal_autocheckpoint=32768;PRAGMA temp_store=MEMORY;";
And in SQliteDatabase's Constructor comment out the following:
connBuilder.JournalMode = SQLiteJournalModeEnum.Off;
using (var connection = new SQLiteConnection(connBuilder.ToString()))
using (var command = new SQLiteCommand("PRAGMA locking_mode=EXCLUSIVE;", connection))
The latter is a workaround to avoid storing the shared memory used for different connections from different processes to disk in a SHM-File, since this is not necessary in exclusive mode. But as you see it also opens an exclusive connection independent from the InitializationCommand. Just commenting it out should do the trick.
If you want to do a new build, please feel free to make the amendments. Have to do some real live work today and am not sure, whether I find the time to do this myself today...
Actually both, SQLCEDatabase and SQLiteDatabase only use what is stored in Paths.xml - but the value in paths.xml is wrong thenThis is done by design here: https://github.com/MediaPortal/Medi...l/Setup/MP2-Setup/Features/Server.wxs#L31-L35
Completely agree with this one We are still in alpha state and there must be a reason for that (the reason is not stability )Or simply put it into the release news. We are in "alpha" if caring too much about those things we also can call the releases final/stable.
Should work perfectly Thanks!Are those changes the ones you proposed? https://github.com/MediaPortal/MediaPortal-2/commit/9f05459ae6e62fa483842fe84d85d1bc6fb7c410
Maybe I will later on change the DEFAULT_INITIALIZATION_COMMAND to always be "PRAGMA wal_autocheckpoint=32768;PRAGMA temp_store=MEMORY;" and in the respective getter depending on the value of USE_EXCLUSIVE_MODE return "locking_mode=EXCLUSIVE;" + DEFAULT_INITIALIZATION_COMMANDI introduced a "const USE_EXCLUSIVE_MODE" to be able to use both ways (at compile time)
|1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25||Bugreports||4|
|P||MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule?||General||5|
|E||aktuelle englische Forums Webseite von - Showtime Plugin v3||Plugins & Erweiterungen||4|
|[Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards||MediaPortal 1 Plugins||0|
|MultiShortcut Plugin (Uavailable) in DWHD skin||General Support||58|
|Building TV Plugin||General Development (no feature request here!)||49|
|Nach Windows-Updates läuft TV-Plugin nicht mehr||Allgemeines Support- und Diskussionsforum||0|
|How about a Launcher plugin for MP1?||MediaPortal 1||6|
|D||[solved] TVServer Plugin must be missing something.||General Development (no feature request here!)||1|
|Nouveau plugin XmlTvFR pour récupérer le guide télé français||Kazer / ZguideTv (WebEPGfr)||11|
|Allow remote control mapping of all plugins||Improvement Suggestions||0|
|D||Where should plugins be located on hard drive?||General Support||0|
|D||how to disengage from one version of a plugin to use another||Newcomers Forum||0|
|How to disable a pre-configured plugin?||General||2|
|[Plugin]Marantz Control Plugin 0.0.0.2||MediaPortal 1 Plugins||2|
|beginner: trying to write a plugin, need help to catch event||General Development (no feature request here!)||3|
|[Rejected] Fix PowerScheduler plugin for MP2 single seat||Submit: Code Patches||9|
|[Question] Stale plugins||Developer Discussions||9|
|M||MP1 stops responding after Starting Plugins||General Support||14|
|LAVFilter Plugin cannot be updated (MP1.23)||MediaPortal 1 Plugins||10|
|L||Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected||General Support||1|
|C||Can the XmlTv Plugin handle 600+ channels?||General||3|
|M||Online Video Plugin V.2.32 keine Installtion unter MediaPortal 1.22 ?||TV / Streaming||3|
|Pictures in the cloud - would a plugin be possible for services like Google Photos||MediaPortal 1 Plugins||1|
|C||where is the Online Videos plugin||General Support||1|