Shortcuts manager

Use this job to set the default profile in profiles.ini file.


Use it

Sample job configuration in your scenario file:

- name: Set default profile to conf_qgis_fr
    uses: default-profile-setter
    with:
      profile: conf_qgis_fr
      force_profile_selection_policy: true

Options

profile

Name of the profile to set as default profile.

force_profile_selection_policy

Force the key selectionPolicy to 1, which will always open the profile defined in the defaultProfile key in profiles.ini file. In this context, this job will force QGIS to always start with the profile specified in this job. It’s the same behavior as the option Always use profile in QGIS user profiles preferences.


Schema

{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://github.com/qgis-deployment/qgis-deployment-toolbelt-cli/raw/main/docs/schemas/scenario/jobs/default-profile-setter.json",
    "description": "Set the default profile in profile.ini",
    "title": "Default profile setter",
    "type": "object",
    "properties": {
        "profile": {
            "description": "Name of the profile to set as default profile.",
            "type": "string"
        },
        "force_profile_selection_policy": {
            "description": "Force the profile selection policy to 1 (always open default profile).",
            "type": "boolean",
            "default": false
        }
    }
}