Re: [Qgis-user] Have QGIS prompt for profile to use everytime ?

2020-10-22 Thread Raymond Nijssen
Yes, that! Thanks! Raymond On 21-10-2020 23:31, Fernando M. Roxo da Motta wrote: On Wed, 21 Oct 2020 17:18:05 +0200, Raymond Nijssen wrote: This script works for me. But I'm not all sure about the way I start a new process for QGIS and quit the python script. I think ending the command

Re: [Qgis-user] Have QGIS prompt for profile to use everytime ?

2020-10-21 Thread Fernando M. Roxo da Motta
On Wed, 21 Oct 2020 17:18:05 +0200, Raymond Nijssen wrote: > This script works for me. But I'm not all sure about the way I start > a new process for QGIS and quit the python script. I think ending the > command with an "&" only works on unix kind of systems.. Perhaps the 'run()' method of

Re: [Qgis-user] Have QGIS prompt for profile to use everytime ?

2020-10-21 Thread Charles Dixon-Paver
I tried to make a quick and dirty cross platform one with zenity that will work OOTB without worrying about the python environment setup. Didn't work as planned as the zenity portable app for windows seems a bit glitchy (there's no way to cancel I could find). Anyway, it should work OOTB on Gnome,

Re: [Qgis-user] Have QGIS prompt for profile to use everytime ?

2020-10-21 Thread Raymond Nijssen
This script works for me. But I'm not all sure about the way I start a new process for QGIS and quit the python script. I think ending the command with an "&" only works on unix kind of systems.. --- import sys import os from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout,

Re: [Qgis-user] Have QGIS prompt for profile to use everytime ?

2020-10-21 Thread Richard Duivenvoorde
On 10/21/20 1:21 PM, Lars I. Nielsen, LIFA A/S wrote: > Hi list. > > If I have multiple profiles defined, is it possible to have QGIS prompt me > everytime for which profile to use ? > > I know that I can add “--profile NAME” to the command line, but is looking > for a way to avoid having

Re: [Qgis-user] Have QGIS prompt for profile to use everytime ?

2020-10-21 Thread Charles Dixon-Paver
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: @echo off @setlocal enableextensions @cd /d "%~dp0" Set

Re: [Qgis-user] Have QGIS prompt for profile to use everytime ?

2020-10-21 Thread Raymond Nijssen
Hi Lars, I don't think you can. You can make a startup.py script that runs every time you start QGIS, but it sits in your profile folder. So when QGIS runs it, QGIS must already be aware of the profile that is being used. Also, changing the profile needs a QGIS restart, so it seems QGIS

[Qgis-user] Have QGIS prompt for profile to use everytime ?

2020-10-21 Thread Lars I. Nielsen, LIFA A/S
Hi list. If I have multiple profiles defined, is it possible to have QGIS prompt me everytime for which profile to use ? I know that I can add "--profile NAME" to the command line, but is looking for a way to avoid having multiple start icons. Med venlig hilsen Lars I. Nielsen, LIFA A/S