[QGIS-Developer] loading projects in startup.py

Karsten Tebling tebling at masuch.de
Mon Oct 23 01:51:00 PDT 2023


Hello,

I'm trying to load different projects depending on some parameters in 
startup.py but I can't get it to work. If I try to load the projects 
directly via QgsProject.instance().read(), nothing happens at all at 
startup. If I try to change the "qgis/projOpenAtLaunch"-setting, the 
change only affects the next start of QGIS, not the current start, which 
is kind of confusing.

Any suggestions?

Cheers,

Karsten



More information about the QGIS-Developer mailing list