Skip to content

Commit 2242aa8

Browse files
authored
Merge pull request #22 from valnoxy/dev
Version 1.3.2
2 parents 6254808 + 8c7ec41 commit 2242aa8

3 files changed

Lines changed: 22 additions & 3 deletions

File tree

GoAwayEdge/App.xaml.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ public static void RunParser(string[] args)
222222
var isCopilot = false;
223223
var parsedData = false;
224224
var ignoreStartup = false;
225+
var collectSingleArgument = false;
226+
var singleArgument = string.Empty;
225227
var p = new Process();
226228
p.StartInfo.UseShellExecute = true;
227229
p.StartInfo.RedirectStandardOutput = false;
@@ -235,6 +237,13 @@ public static void RunParser(string[] args)
235237

236238
foreach (var arg in args)
237239
{
240+
if (collectSingleArgument)
241+
{
242+
// Concatenate all remaining arguments into a single string
243+
singleArgument += (singleArgument.Length > 0 ? " " : "") + arg;
244+
continue;
245+
}
246+
238247
// Check for Copilot
239248
if (arg.Contains("microsoft-edge://?ux=copilot&tcp=1&source=taskbar")
240249
|| arg.Contains("microsoft-edge:///?ux=copilot&tcp=1&source=taskbar"))
@@ -262,8 +271,18 @@ public static void RunParser(string[] args)
262271
if (arg.Contains("--no-startup-window")
263272
|| arg.Contains("--profile-directory"))
264273
ignoreStartup = true;
274+
275+
// Check for the single argument flag
276+
if (arg == "--single-argument")
277+
{
278+
collectSingleArgument = true;
279+
}
265280
}
266281

282+
// Validate single argument
283+
if (File.Exists(singleArgument))
284+
isFile = true;
285+
267286
// Open Edge normally
268287
if ((!parsedData || isCopilot || isFile || args.Contains("--profile-directory")) && !ignoreStartup)
269288
{
@@ -282,7 +301,7 @@ public static void RunParser(string[] args)
282301
messageUi.ShowDialog();
283302
}
284303
}
285-
var parsedArgs = args.Skip(2);
304+
var parsedArgs = args.Skip(1);
286305
p.StartInfo.FileName = FileConfiguration.NonIfeoPath;
287306
p.StartInfo.Arguments = string.Join(" ", parsedArgs);
288307
p.Start();

GoAwayEdge/GoAwayEdge.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<AssemblyName>GoAwayEdge</AssemblyName>
1313
<Company>Exploitox</Company>
1414
<Authors>valnoxy</Authors>
15-
<Version>1.3.1.136</Version>
15+
<Version>1.3.2.141</Version>
1616
<Copyright>Copyright (c) 2018 - 2024 Exploitox. All rights reserved.</Copyright>
1717
<PackageProjectUrl>https://github.com/valnoxy/GoAwayEdge</PackageProjectUrl>
1818
<RepositoryUrl>https://github.com/valnoxy/GoAwayEdge</RepositoryUrl>

GoAwayEdge/Properties/PublishProfiles/FolderProfile.pubxml.user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
44
-->
55
<Project>
66
<PropertyGroup>
7-
<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>
7+
<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>
88
<LastFailureDetails />
99
</PropertyGroup>
1010
</Project>

0 commit comments

Comments
 (0)