using System.ComponentModel; using System.Runtime.Versioning; namespace ElectronNET.API.Entities { /// /// Controls the behavior of OpenExternal. /// /// Up-to-date with Electron API 39.2 public class OpenExternalOptions { /// /// Gets or sets whether to bring the opened application to the foreground. The default is . /// [SupportedOSPlatform("macos")] [DefaultValue(true)] public bool Activate { get; set; } = true; /// /// Gets or sets the working directory. /// [SupportedOSPlatform("windows")] public string WorkingDirectory { get; set; } /// /// Gets or sets a value indicating a user-initiated launch that enables tracking of frequently used programs and other behaviors. The default is . /// [SupportedOSPlatform("windows")] [DefaultValue(false)] public bool LogUsage { get; set; } = false; } }