![]() |
AdvancedSettings.xml overriding guisettings.xml. - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: AdvancedSettings.xml overriding guisettings.xml. (/showthread.php?tid=357970) |
AdvancedSettings.xml overriding guisettings.xml. - emveepee - 2020-10-26 Over the weekend I read on the wiki that some guisettings.xml can also be retrieved from advancedsettings.xml https://kodi.wiki/view/Advancedsettings.xml#guisettings.xml_settings That is a great feature for me because I usually copy in my custom advancedsettings on every install and I could get my own defaults much easier. I can't get it to work though and I can't easily find any code to to help me sort this out. If the wiki wrong (for Matrix anyway) on this or am I just not building advancedsettings properly? Martin RE: AdvancedSettings.xml overriding guisettings.xml. - Klojum - 2020-10-26 (2020-10-26, 02:03)emveepee Wrote: I can't get it to work though and I can't easily find any code to to help me sort this out. Which tags/values placed in the advancedsettings.xml file aren't working for you? I never knew of this option, and it would simplify and expedite installing new Kodi clients quite a bit. RE: AdvancedSettings.xml overriding guisettings.xml. - emveepee - 2020-10-26 All, well at least I haven't found any that work. The setting names don't match the example either https://github.com/xbmc/xbmc/blob/master/xbmc/settings/Settings.cpp#L63 Martin RE: AdvancedSettings.xml overriding guisettings.xml. - Karellen - 2020-10-26 After a little bit of trial and error, I figured out how it works. I used v19 to test. If you open your guisettings.xml file you will find the settings which look like this example...
Selecting one and breaking it down videolibrary- parent tag showemptytvshows- tag true- value Which then becomes this for the advancedsettings.xml file...
Then you will note that this setting is no longer visible in the Settings pages Once others can test and confirm it works as described above, I will update the wiki page. RE: AdvancedSettings.xml overriding guisettings.xml. - emveepee - 2020-10-26 I see my issue, I was putting <pvrmanager> in <pvr> like settings.xml, at the root it works. Thanks Martin RE: AdvancedSettings.xml overriding guisettings.xml. - black_eagle - 2020-10-26 @Karellen I can confirm that it works as you describe here. For instance
removes the option to change the display output device. Relevant guisettings.xml is <setting id="videoscreen.monitor">DVI-D-0</setting> . I tested several settings and they all worked. Quite powerful to be able to remove a bunch of settings from the GUI. I'm going to use this to re-configure the kids rPi's so that I can remove some settings that they are occasionally tempted to tinker around with ![]() RE: AdvancedSettings.xml overriding guisettings.xml. - Karellen - 2020-10-26 Thanks for confirming @emveepee and @black_eagle I'll update the wiki page tomorrow. RE: AdvancedSettings.xml overriding guisettings.xml. - hugohuetzel - 2020-11-26 I use this feature for years to have the same config on all kodi boxes, but i copy only the line from guisettings.xml to advancedsettings.xml (but you have to remove the default="true"). For example:
This is working fine for me. I have about 100 predefined settings in my advancedsettings.xml and all of them are hided in the gui. RE: AdvancedSettings.xml overriding guisettings.xml. - Karellen - 2020-11-26 Thanks @hugohuetzel I did not realise that worked also. I'll try it out. |