<div dir="ltr"><div>If you don't want to bother with a full blown python app, on windows you could pretty easily make a "custom-profile-qgis.cmd" batchfile with something like the following:</div><div><br></div><div>------------------------------------------------------------  <br></div><div><br></div><div>@echo off<br>@setlocal enableextensions<br>@cd /d "%~dp0"<br><br>Set "MYPROFILE=default"<br>ECHO Please type the name of your user profile:<br>Set /P "MYPROFILE="<br><br>%COMSPEC% /C "CALL C:\OSGeo4W64\bin\qgis.bat --profile %MYPROFILE% %*"<br></div><div><br></div><div>------------------------------------------------------------









</div><div><br></div><div>Changing the QGIS startup batch location of course. You could also probably extend it easily with <a href="https://ss64.com/nt/choice.html" target="_blank">https://ss64.com/nt/choice.html</a></div><div><br></div><div>Then your "shortcut" will prompt you for the profile you want to use.</div><div><br></div><div>I reckon pulling off the same in bash is also pretty trivial...</div><div><br></div><div>Regards</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 21 Oct 2020 at 14:00, Raymond Nijssen <<a href="mailto:r.nijssen@terglobo.nl" target="_blank">r.nijssen@terglobo.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Lars,<br>
<br>
I don't think you can. You can make a startup.py script that runs every <br>
time you start QGIS, but it sits in your profile folder. So when QGIS <br>
runs it, QGIS must already be aware of the profile that is being used. <br>
Also, changing the profile needs a QGIS restart, so it seems QGIS cannot <br>
change profile anymore while running.<br>
<br>
Maybe you can make a small python (pyqt?) script that displays a dialog <br>
with profile name picker and does a "qgis --profile NAME" for you?<br>
<br>
Regards,<br>
Raymond<br>
<br>
<br>
On 21-10-2020 13:21, Lars I. Nielsen, LIFA A/S wrote:<br>
> Hi list.<br>
> <br>
> If I have multiple profiles defined, is it possible to have QGIS prompt <br>
> me everytime for which profile to use ?<br>
> <br>
> I know that I can add “--profile NAME” to the command line, but is <br>
> looking for a way to avoid having multiple start icons.<br>
> <br>
> Med venlig hilsen<br>
> <br>
> Lars I. Nielsen, LIFA A/S<br>
> GIS-kons., FME+Python Certified Professional<br>
> Geoinformatik<br>
> <br>
> *T*<br>
> <br>
>       <br>
> <br>
> 6313 6800<br>
> <br>
>       <br>
> <br>
> *@*<br>
> <br>
>       <br>
> <br>
> <a href="mailto:lin@lifa.dk" target="_blank">lin@lifa.dk</a><br>
> <br>
> *D*<br>
> <br>
>       <br>
> <br>
> 6313 6849<br>
> <br>
>       <br>
> <br>
> *W*<br>
> <br>
>       <br>
> <br>
> <a href="http://www.lifa.dk" rel="noreferrer" target="_blank">www.lifa.dk</a> <<a href="http://www.lifa.dk" rel="noreferrer" target="_blank">http://www.lifa.dk</a>><br>
> <br>
> *M*<br>
> <br>
>               <br>
> <br>
> *CVR*<br>
> <br>
>       <br>
> <br>
> 20937289<br>
> <br>
> <br>
> <<a href="https://www.linkedin.com/company/lifa-a-s/" rel="noreferrer" target="_blank">https://www.linkedin.com/company/lifa-a-s/</a>><br>
> Følg os på LinkedIn og læs de seneste nyheder fra LIFA A/S<br>
> <br>
> <br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> <br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>