Find path to running app using [NSBundle bundlePath]

This commit is contained in:
Max Brunsfeld 2022-04-04 20:53:40 -07:00
parent fb2caf3c58
commit e566a8335f
4 changed files with 25 additions and 5 deletions

View file

@ -57,6 +57,7 @@ pub trait Platform: Send + Sync {
fn local_timezone(&self) -> UtcOffset;
fn path_for_resource(&self, name: Option<&str>, extension: Option<&str>) -> Result<PathBuf>;
fn app_path(&self) -> Result<PathBuf>;
fn app_version(&self) -> Result<AppVersion>;
}