Skip to content

Commit

Permalink
Merge pull request #22 from valnoxy/dev
Browse files Browse the repository at this point in the history
Version 1.3.2
  • Loading branch information
valnoxy authored Jun 4, 2024
2 parents 6254808 + 8c7ec41 commit 2242aa8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
21 changes: 20 additions & 1 deletion GoAwayEdge/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ public static void RunParser(string[] args)
var isCopilot = false;
var parsedData = false;
var ignoreStartup = false;
var collectSingleArgument = false;
var singleArgument = string.Empty;
var p = new Process();
p.StartInfo.UseShellExecute = true;
p.StartInfo.RedirectStandardOutput = false;
Expand All @@ -235,6 +237,13 @@ public static void RunParser(string[] args)

foreach (var arg in args)
{
if (collectSingleArgument)
{
// Concatenate all remaining arguments into a single string
singleArgument += (singleArgument.Length > 0 ? " " : "") + arg;
continue;
}

// Check for Copilot
if (arg.Contains("microsoft-edge://?ux=copilot&tcp=1&source=taskbar")
|| arg.Contains("microsoft-edge:///?ux=copilot&tcp=1&source=taskbar"))
Expand Down Expand Up @@ -262,8 +271,18 @@ public static void RunParser(string[] args)
if (arg.Contains("--no-startup-window")
|| arg.Contains("--profile-directory"))
ignoreStartup = true;

// Check for the single argument flag
if (arg == "--single-argument")
{
collectSingleArgument = true;
}
}

// Validate single argument
if (File.Exists(singleArgument))
isFile = true;

// Open Edge normally
if ((!parsedData || isCopilot || isFile || args.Contains("--profile-directory")) && !ignoreStartup)
{
Expand All @@ -282,7 +301,7 @@ public static void RunParser(string[] args)
messageUi.ShowDialog();
}
}
var parsedArgs = args.Skip(2);
var parsedArgs = args.Skip(1);
p.StartInfo.FileName = FileConfiguration.NonIfeoPath;
p.StartInfo.Arguments = string.Join(" ", parsedArgs);
p.Start();
Expand Down
2 changes: 1 addition & 1 deletion GoAwayEdge/GoAwayEdge.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<AssemblyName>GoAwayEdge</AssemblyName>
<Company>Exploitox</Company>
<Authors>valnoxy</Authors>
<Version>1.3.1.136</Version>
<Version>1.3.2.141</Version>
<Copyright>Copyright (c) 2018 - 2024 Exploitox. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/valnoxy/GoAwayEdge</PackageProjectUrl>
<RepositoryUrl>https://github.com/valnoxy/GoAwayEdge</RepositoryUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2024-06-03T18:38:32.1829308Z;True|2024-06-03T20:19:22.3766696+02:00;False|2024-06-03T20:19:17.5539398+02:00;True|2024-06-03T20:08:52.0793197+02:00;True|2024-06-03T19:52:23.2891156+02:00;True|2024-06-03T19:45:03.6386707+02:00;True|2024-06-03T19:41:29.8463622+02:00;True|2024-06-03T18:55:35.4729573+02:00;True|2024-02-18T17:16:27.0408261+01:00;True|2024-02-18T17:15:41.3961034+01:00;True|2024-02-18T17:11:58.7761728+01:00;True|2024-02-18T17:08:57.9390623+01:00;True|2024-02-18T17:08:26.6377454+01:00;True|2024-02-18T17:07:45.2050537+01:00;True|2024-02-18T17:05:12.7495146+01:00;True|2024-02-18T17:02:32.4549017+01:00;True|2024-02-18T16:48:25.3074382+01:00;True|2023-10-19T00:00:28.0962969+02:00;True|2022-11-13T02:33:03.7406004+01:00;True|2022-11-13T02:19:07.9073988+01:00;True|2022-11-13T02:18:35.3043045+01:00;True|2022-11-12T20:05:07.6366825+01:00;False|2022-11-12T20:04:52.3576134+01:00;True|2022-11-12T19:36:12.8480978+01:00;</History>
<History>True|2024-06-04T18:14:56.2584434Z;True|2024-06-03T20:38:32.1829308+02:00;True|2024-06-03T20:19:22.3766696+02:00;False|2024-06-03T20:19:17.5539398+02:00;True|2024-06-03T20:08:52.0793197+02:00;True|2024-06-03T19:52:23.2891156+02:00;True|2024-06-03T19:45:03.6386707+02:00;True|2024-06-03T19:41:29.8463622+02:00;True|2024-06-03T18:55:35.4729573+02:00;True|2024-02-18T17:16:27.0408261+01:00;True|2024-02-18T17:15:41.3961034+01:00;True|2024-02-18T17:11:58.7761728+01:00;True|2024-02-18T17:08:57.9390623+01:00;True|2024-02-18T17:08:26.6377454+01:00;True|2024-02-18T17:07:45.2050537+01:00;True|2024-02-18T17:05:12.7495146+01:00;True|2024-02-18T17:02:32.4549017+01:00;True|2024-02-18T16:48:25.3074382+01:00;True|2023-10-19T00:00:28.0962969+02:00;True|2022-11-13T02:33:03.7406004+01:00;True|2022-11-13T02:19:07.9073988+01:00;True|2022-11-13T02:18:35.3043045+01:00;True|2022-11-12T20:05:07.6366825+01:00;False|2022-11-12T20:04:52.3576134+01:00;True|2022-11-12T19:36:12.8480978+01:00;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>

0 comments on commit 2242aa8

Please sign in to comment.