qgis_deployment_toolbelt.shortcuts.manifest module

Manifest of the shortcuts created by QDT.

qgis_deployment_toolbelt.shortcuts.manifest._add_shortcut_to_manifest(manifest: dict[str, dict[str, str]], shortcut_path: Path, profile_folder: Path, location: Literal['desktop', 'start_menu']) → None

Add/update a shortcut to the QDT shortcuts manifest.

Parameters:
  • manifest (dict[str, dict[str, str]]) – manifest dict to amend, in place

  • shortcut_path (Path) – path to the plugin that has just been installed

  • profile_folder (Path) – path to the profile folder targeted by the shortcut

  • location (ShortcutLocation) – where the shortcut has been created

qgis_deployment_toolbelt.shortcuts.manifest._read_qdt_managed_shortcuts_manifest(manifest_path: Path) → dict[str, dict[str, str]]

Read the QDT managed plugins manifest from disk, if it exists.

Parameters:

manifest_path (Path) – path to the manifest file

Returns:

manifest content, or an empty dict if the file doesn’t exist or is corrupted

Return type:

dict[str, dict[str, str]]

qgis_deployment_toolbelt.shortcuts.manifest._write_qdt_managed_shortcuts_manifest(manifest_path: Path, manifest: dict[str, dict[str, str]]) → None

Write the QDT managed plugins manifest to file.

Parameters:
  • manifest_path (Path) – path to the manifest file

  • manifest (dict[str, dict[str, str]]) – manifest content to write