From 71ae9a84daa9eb9e5e7ad907569730400cede50b Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 9 Mar 2016 03:52:04 +0100 Subject: [PATCH] Fix misc bug, #48 --- ArchiSteamFarm/Program.cs | 3 ++- ArchiSteamFarm/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/Program.cs b/ArchiSteamFarm/Program.cs index 031c00164..c1d541703 100644 --- a/ArchiSteamFarm/Program.cs +++ b/ArchiSteamFarm/Program.cs @@ -27,6 +27,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; +using System.Linq; using System.Reflection; using System.Threading; using System.Threading.Tasks; @@ -257,7 +258,7 @@ namespace ArchiSteamFarm { internal static bool Restart() { try { // TODO: This probably won't work on Mono, I wonder if I can make it work at some point - if (Process.Start(ExecutableFile, string.Join(" ", Environment.GetCommandLineArgs())) != null) { + if (Process.Start(ExecutableFile, string.Join(" ", Environment.GetCommandLineArgs().Skip(1))) != null) { Exit(); return true; } else { diff --git a/ArchiSteamFarm/Properties/AssemblyInfo.cs b/ArchiSteamFarm/Properties/AssemblyInfo.cs index f7cb8abb0..3b4328c1c 100644 --- a/ArchiSteamFarm/Properties/AssemblyInfo.cs +++ b/ArchiSteamFarm/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.0.0.2")] -[assembly: AssemblyFileVersion("2.0.0.2")] +[assembly: AssemblyVersion("2.0.0.3")] +[assembly: AssemblyFileVersion("2.0.0.3")]