pub fn get_app_bundled_asset(file_name: &str) -> Option<PathBuf>
Available on crate feature assets only.
Expand description

Returns the path to an asset of the application.

Platform specific behavior

On supported platforms this returns an asset bundled in the application. Supported platforms are:

  • Any Linux/Unix when app is packaged as an AppImage,
  • macOS (when app is packaged as a .app),
  • iOS

In the case a platform/packaging method isn’t supported this function still returns a path based on executable location.

Returns None if there is a system issue, ex: the system didn’t return a proper path to the current executing application. This should rarely occur.