Skip to content

Instantly share code, notes, and snippets.

@ongun-kanat
Created May 15, 2018 02:06
Show Gist options
  • Save ongun-kanat/4fc3fe331196238c74152ab42057faa7 to your computer and use it in GitHub Desktop.
Save ongun-kanat/4fc3fe331196238c74152ab42057faa7 to your computer and use it in GitHub Desktop.

How metadata is extracted in Information Panel

  1. Dolphin creates Baloo::FileMetadataWidget
  2. When a single file is clicked Baloo::FileMetadataWidget::setItems is called by Dolphin
  3. The class Baloo::FileMetaDataWidget uses Baloo::FileMetaDataProvider to create a filling job
  4. Then Baloo::FileMetaDataProvider::setFileItem is called and creates an Baloo::IndexedDataRetriever instance.
  5. Then, Baloo::IndexedDataRetriever creates a process using executable baloo_filemetadata_temp_extractor which prints the results gathered by KFileMetaData extractors and Baloo::IndexedDataRetriever reads the standart output.
  6. The results are returned and merged with standard fields and printed in the widget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment