pub fn get_firefox_version(install_path: &Path) -> Result<String>Expand description
Get the Firefox version from an installation directory
This function reads the application.ini or platform.ini file from
the Firefox installation directory and extracts the version string.
§Arguments
install_path- Path to Firefox installation directory
§Returns
Ok(version)- Firefox version string (e.g., “128.0”)Err(_)- Error reading or parsing version file
§Example
use ffcv::get_firefox_version;
use std::path::Path;
let path = Path::new("/usr/lib/firefox");
match get_firefox_version(&path) {
Ok(version) => println!("Firefox version: {}", version),
Err(e) => eprintln!("Error: {}", e),
}