Expand description
Provides user-friendly display names for watch paths.
Flatpak document-portal paths (/run/user/.../doc/...) are mapped
back to their original human-readable folder names. Regular paths
are shortened to their final component for compact UI display.
Functionsยง
- display_
watch_ path - Converts a stored watch path into a user-friendly label for display in the UI and logs.
- display_
watch_ path_ inline - Returns the full path for regular folders, or the folder name for Flatpak portal paths. Useful for contexts where the path is displayed inline (e.g., diagnostics, album linked folder) without a separate subtitle.
- is_
document_ portal_ path - Detects document-portal paths returned by the Flatpak file chooser portal.
- watch_
path_ subtitle - Returns an explanatory subtitle for special watch paths, if applicable.