MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / kill_installed

Function kill_installed

packages/server/src/service.rs:219–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217}
218
219pub fn kill_installed() -> anyhow::Result<Vec<u32>> {
220 ensure_launch_agent_supported()?;
221 let domain = launchctl_domain()?;
222 let killed = unload_existing_services(&domain)?;
223 for path in service_plist_paths()? {
224 if path.exists() {
225 fs::remove_file(&path).with_context(|| format!("remove {}", path.display()))?;
226 }
227 }
228 Ok(killed)
229}
230
231fn launch_agent_supported() -> bool {
232 cfg!(target_os = "macos")

Callers 2

kill_all_servicesFunction · 0.85
disableFunction · 0.85

Calls 4

launchctl_domainFunction · 0.85
unload_existing_servicesFunction · 0.85
service_plist_pathsFunction · 0.85

Tested by

no test coverage detected