Programmatically remove/add plugin and or repositories as post install

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chourmovs
    Junior Member
    • Sep 2021
    • 17

    Programmatically remove/add plugin and or repositories as post install

    > a good explanation why I didn't found anything and why thousands of "non
    > logitech" users begin their post install by removing most of the plugins
    > for years without complaining


    Haha... I did indeed turn off a few plugins by default in 8.3. But I
    still think it's better if the user who cares can disable stuff he
    doesn't want, rather than have the beginner try to figure out which
    plugin he wants.

    If you want to disable some default plugins, and you're working on your
    own fork anyway, you could simply change the "defaultState" in the
    corresponding install.xml file.
  • chourmovs
    Junior Member
    • Sep 2021
    • 17

    #2
    Programmatically remove/add plugin and or repositories as post install

    Hi,

    I'm today developing a script to install LMS on a headless server and I would like to keep reference to the official repo of LMS while changing the plugin installed by default and adding new ones to avoid painful or unwanted configuration to basic user.
    Is there a way to perform the trick via CLI, API call or by altering config file the good old way ?

    Hope this is clear enough

    Thank you by advance for your kind support

    Vincent S

    Comment

    • mherger
      Babelfish's Best Boy
      • Apr 2005
      • 24643

      #3
      Programmatically remove/add pluginand or repositories as post install

      There's no well defined or documented way to manage plugins outside the
      web UI. But what I could imagine might work is to edit the
      plugin/state.prefs file inside your LMS' prefs folder. Look what the web
      UI does when you try to install a plugin, then do this in your script:

      - install a plugin in LMS
      - do NOT restart LMS when asked to do so, but shut it down
      - look at the above file and what state it has for the freshly added plugin
      - apply the same state to any other plugin you want to install
      - start LMS

      Hopefully this would automatically install the plugins. I'm not sure
      this will work without looking at the code. Maybe you'd have to download
      the plugin downloadable files yourself beforehand. But basically that's
      the way I'd imagine could work.
      Michael

      "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
      (LMS: Settings/Information)

      Comment

      • chourmovs
        Junior Member
        • Sep 2021
        • 17

        #4
        Thank you Michael, I will try your way and will do the same with new repository.
        I'm surprised that even you dont know exactly how plugin works outside web ui
        a good explanation why I didn't found anything and why thousands of "non logitech" users begin their post install by removing most of the plugins for years without complaining

        Comment

        Working...