public async Task execute() { Process proc = new Process(); proc.StartInfo.FileName = WindowsOperations.GetSystemDefaultBrowser(); if (this.newWindow) { proc.StartInfo.Arguments = "--new-window "; } proc.StartInfo.Arguments += url; proc.StartInfo.UseShellExecute = true; try { proc.Start(); } catch (Exception ex) { throw new CommandExecutionException(ex.Message); } await Task.Delay(300); }
public override void Run() { base.Run(); WindowsOperations.Shutdown(ShutdownOption.Reboot); NativeMethods.ExitKrento(); }
internal static void _setFileLinkOff() { WindowsOperations.RemoveFileTypeAssociation(".ls", "LaunchScript"); }
internal static void _setFileLinkOn() { WindowsOperations.AssociateFileTypeIfNeeded(FILE_LINK_EXT, FILE_LINK_APPNAME); }
public async Task execute() { await WindowsOperations.SnapCurrentWindowClean(dirs); }
public override void Run() { base.Run(); WindowsOperations.Suspend(); }