Skip to main content

Module icon

Module icon 

Source

Constants§

EMBEDDED_ICO_BYTES
EMBEDDED_MIME_ICONS
Mimetype icons, one per hicolor size directory. Downscaled from assets/icon.png and shipped under the same Apache-2.0 licence as the rest of the repository — see assets/README.md.
EMBEDDED_PNG_BYTES
The 256px icon doubles as the config-folder icon on Linux.
EMBEDDED_SCHEMA_BYTES
MIME_ICON_NAME
Icon name derived from the MIME type, as the icon-naming spec requires: the type with its / replaced by -. A file manager looks up exactly this name and no other.
MIME_TYPE
The MIME type *.devprune.json is registered as.

Functions§

is_registered
Whether everything sync_app_directory writes is already on disk.
mime_package_xml
The XDG MIME package describing the glob.
run_install
Register custom file icon associations for *.devprune.json.
sync_app_directory
Write the icon assets and JSON Schema into the config directory, then register the file type with the OS file manager as far as the platform allows.
unregister_file_type
Undo register_file_type. Called by devp uninstall; a no-op off Linux.