Table of Contents

Interface IOsxElevationLauncher

Namespace
Fluxzy.Misc
Assembly
Fluxzy.Core.dll

Alternative macOS elevation mechanism. When assigned to Fluxzy.Misc.ProcessUtils.OsxElevationLauncher, it replaces the built-in flow (system authorization dialog, sudo) entirely.

public interface IOsxElevationLauncher

Methods

StartElevatedAsync(string, string[], bool, string, bool)

Starts commandName as root. When redirectStdOut is true, the returned process must expose live stdin/stdout. Returns null when elevation is declined or unavailable.

Task<Process?> StartElevatedAsync(string commandName, string[] args, bool redirectStdOut, string askPasswordPrompt, bool redirectStandardError)

Parameters

commandName string
args string[]
redirectStdOut bool
askPasswordPrompt string
redirectStandardError bool

Returns

Task<Process>