diff --git a/GoAwayEdge/App.xaml.cs b/GoAwayEdge/App.xaml.cs index 617bec9..ac20599 100644 --- a/GoAwayEdge/App.xaml.cs +++ b/GoAwayEdge/App.xaml.cs @@ -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; @@ -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")) @@ -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) { @@ -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(); diff --git a/GoAwayEdge/GoAwayEdge.csproj b/GoAwayEdge/GoAwayEdge.csproj index e09335e..0358731 100644 --- a/GoAwayEdge/GoAwayEdge.csproj +++ b/GoAwayEdge/GoAwayEdge.csproj @@ -12,7 +12,7 @@ GoAwayEdge Exploitox valnoxy - 1.3.1.136 + 1.3.2.141 Copyright (c) 2018 - 2024 Exploitox. All rights reserved. https://github.com/valnoxy/GoAwayEdge https://github.com/valnoxy/GoAwayEdge diff --git a/GoAwayEdge/Properties/PublishProfiles/FolderProfile.pubxml.user b/GoAwayEdge/Properties/PublishProfiles/FolderProfile.pubxml.user index cdccf41..e10fed3 100644 --- a/GoAwayEdge/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/GoAwayEdge/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - 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; + 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; \ No newline at end of file