Skip to main content

Crate recently_used_xbel

Crate recently_used_xbel 

Source
Expand description

Parse the ~/.local/share/recently-used.xbel file

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let recently_used = recently_used_xbel::parse_file()?;

    for bookmark in recently_used.bookmarks {
        println!("{:?}", bookmark);
    }

    Ok(())
}

Structs§

Application
An application that accessed the bookmark.
Applications
A list of applications that accessed the bookmark.
Bookmark
A file that was recently opened by the desktop user.
Info
Metadata
Metadata containing MIME type and application info.
MimeType
The MIME type of the file.
RecentlyUsed
Stores recently-opened files accessed by the desktop user.

Enums§

Error
An error that can occur when accessing recently-used files.

Functions§

clear_recently_used
Clear the list of recently used files.
dir
The path where the recently-used.xbel file is expected to be found.
parse_file
Convenience function for parsing the recently-used.xbel file in its default location.
remove_recently_used
Removes elements from the list of recently used files.
update_recently_used
Updates the list of recently used files.