I'm working with PostgreSQL in QGIS and have a Python script that runs when the QGIS session starts.
Right now, the PostgreSQL connection requires authentication first, and only after that, the Python script window appears.
I would like to integrate the PostgreSQL login prompt directly into my Python startup script.
I've tried different approaches, but it seems there’s no way to trigger Python before the login dialogue. Is this actually possible?