Function etcetera::app_strategy::choose_app_strategy
source · pub fn choose_app_strategy(
args: AppStrategyArgs
) -> Result<Xdg, <Xdg as AppStrategy>::CreationError>
Expand description
Returns the current OS’s default AppStrategy
.
This uses the Windows
strategy on Windows, and Xdg
everywhere else.
This is the convention used by most CLI applications.