<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Thomas,</p>
    <p>you can clear the section before adding the new values with:</p>
    <p><span class="fade-parent" style="display: inline-block;"><span
          class=""><span class="contactName"><span class="smallEmail"><i>QgsSettings().remove('svg/searchPathsForSVG')</i></span></span></span></span></p>
    <p><span class="fade-parent" style="display: inline-block;"><span
          class=""><span class="contactName"><span class="smallEmail">and
              then add your values</span></span></span></span></p>
    <p><span class="fade-parent" style="display: inline-block;"><span
          class=""><span class="contactName"><span class="smallEmail">Best
              regards</span></span></span></span></p>
    <p><span class="fade-parent" style="display: inline-block;"><span
          class=""><span class="contactName"><span class="smallEmail">Stefan</span></span></span></span></p>
    <pre class="moz-signature" cols="72">Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
---------------------------------------------
Aufwind durch Wissen!
Jetzt neu: Web-Seminare und Online-Schulungen
bei der <a class="moz-txt-link-abbreviated" href="http://www.foss-academy.com">www.foss-academy.com</a>
---------------------------------------------
WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

Tel.: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11

<a class="moz-txt-link-abbreviated" href="mailto:stefan.giese@wheregroup.com">stefan.giese@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885</pre>
    <p><span class="fade-parent" style="display: inline-block;"><span
          class=""><span class="contactName"><span class="smallEmail"></span></span></span></span></p>
    <div class="moz-cite-prefix">Am 05.12.2022 um 13:40 schrieb Thomas
      Schüttenberg via Qgis-user:<br>
    </div>
    <blockquote type="cite"
      cite="mid:912514898.425059.1670244041861@office.mailbox.org">
      <pre class="moz-quote-pre" wrap="">Hi there!
Because our servers have moved, the search paths for SVGs have changed. Unfortunately what we didn't think about before is that these old, wrong paths are (still) in the QGIS3.ini of the local user profiles and now cause eternal delays at startup because of their unreachability.

We already use a startup.py to add file paths in centralized manner, like this 

gdi_global_svg = 'L:/Daten/geoservice/config/qgis_global_settings/svg'
svg_paths = QgsSettings().value('svg/searchPathsForSVG')
if gdi_global_svg in svg_paths:
    pass
else:
    svg_paths.append(gdi_global_svg)
    QgsSettings().setValue('svg/searchPathsForSVG', svg_paths)

Despite my still lacking Python knowledge, I thought one could easily include a corresponding fix (e.g. search and replace) in the startup.py script... 
I am still googling but maybe someone could help me with this, please? That would save my day!

Best regards
Thomas
_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
---------------------------------------------
Aufwind durch Wissen!
Jetzt neu: Web-Seminare und Online-Schulungen
bei der <a class="moz-txt-link-abbreviated" href="http://www.foss-academy.com">www.foss-academy.com</a>
---------------------------------------------
WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

Tel.: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11

<a class="moz-txt-link-abbreviated" href="mailto:stefan.giese@wheregroup.com">stefan.giese@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885</pre>
  </body>
</html>