At the moment liblog will preload all the distro logos into a constant hashmap which the applet and settings binary can both access. The problem is the applet is quite sensitive to having too much compiled into it and I think this approach is causing some lag. Some testing is required but currently the solutions I am thinking about are:
Option 1
- Move the constant hashmap to the settings binary only, as that app can easily handle preloading everything
- When the settings saves the logo it will store the whole SVG content into a config file
- The applet can then build without the logos bundled in and just read the SVG directly from the config
Option 2
This will require some research, but if there's a nice place I can just store all the SVGs on the host machine (or inside the flatpak) and let both the settings and applet just load them directly as required.
At the moment liblog will preload all the distro logos into a constant hashmap which the applet and settings binary can both access. The problem is the applet is quite sensitive to having too much compiled into it and I think this approach is causing some lag. Some testing is required but currently the solutions I am thinking about are:
Option 1
Option 2
This will require some research, but if there's a nice place I can just store all the SVGs on the host machine (or inside the flatpak) and let both the settings and applet just load them directly as required.