Skip to main content
QAROS Rust API Dev (main) · versions: Dev (main) · Developer Guide

instance_runtime_folder

Function instance_runtime_folder 

Source
pub fn instance_runtime_folder(instance: &str) -> Option<PathBuf>
Expand description

The folder holding the runtime of QAROS instance instance, as step 2 of the default lookup picks it: for default the installed QAROS’s <InstallFolder>\bin (installed_bin_folder); for any other name the fully qualified value RuntimeFolder of HKCU\SOFTWARE\Quaternar\QAROS\Instances\<name>, which a QAROS development hub writes for the apps it starts, else that record’s fully qualified <InstallFolder>\bin. None when the name is not valid (crate::is_valid_instance_name), no folder is recorded, or outside Windows, which has no instance records.