profile_manager.handlers.customization module

profile_manager.handlers.customization.import_customizations(source_profile_path: Path, target_profile_path: Path)[source]

Imports UI customizations from source to target profile.

Copies the whole customization file and enables customization in the settings INI file, as in the source profile.

Note: Existing customization will be overwritten!

Customizations are stored in QGIS/QGISCUSTOMIZATION3.ini (QGIS 3) or QGIS/QGISCUSTOMIZATION.xml (QGIS 4), and enabled in the settings INI file (QGIS3.ini, QGIS4.ini) under [UI]Customizationenabled=true

Parameters:
  • source_profile_path – Path of profile directory to import from

  • target_profile_path – Path of profile directory to import to