From 339fbcd502e5e535c985c351f1de3296334f6c26 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Fri, 11 Feb 2022 15:46:35 +0100 Subject: [PATCH] Add launcher updater todo for later --- AM2RLauncher/AM2RLauncher/LauncherUpdater.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs b/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs index a2a4c93..ec26c08 100644 --- a/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs +++ b/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs @@ -207,7 +207,8 @@ namespace AM2RLauncher CrossPlatformOperations.CopyOldConfigToNewConfig(); log.Info("Files extracted. Preparing to restart executable..."); - + + // TODO: This will fail if CWD is not where the launcher is located. Use absolute path here. if (OS.IsLinux) System.Diagnostics.Process.Start("chmod", "+x ./AM2RLauncher.Gtk"); System.Diagnostics.Process.Start(updatePath + "/" + CrossPlatformOperations.LAUNCHERNAME); @@ -219,4 +220,4 @@ namespace AM2RLauncher } } } -} \ No newline at end of file +}