From 9f2e21c1c8112501e4ef86654d67eb3bc59f3d84 Mon Sep 17 00:00:00 2001 From: Andrea Chiera Date: Sat, 2 Dec 2023 15:04:03 +0100 Subject: [PATCH] Minor fixes --- NasaPod/Forms/FormSettings.cs | 1 + NasaPod/Nasa.csproj | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NasaPod/Forms/FormSettings.cs b/NasaPod/Forms/FormSettings.cs index afa26b5..6fa9904 100644 --- a/NasaPod/Forms/FormSettings.cs +++ b/NasaPod/Forms/FormSettings.cs @@ -81,6 +81,7 @@ private void ManageAutostart(bool autostart) IWshRuntimeLibrary.WshShell shell = new IWshRuntimeLibrary.WshShell(); IWshRuntimeLibrary.IWshShortcut shortcut = (IWshRuntimeLibrary.IWshShortcut)shell.CreateShortcut(Path.Combine(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Startup)), "Nasa.lnk")); shortcut.TargetPath = Application.ExecutablePath; + shortcut.WorkingDirectory = Path.GetDirectoryName(Application.ExecutablePath); shortcut.Save(); } } diff --git a/NasaPod/Nasa.csproj b/NasaPod/Nasa.csproj index 7c43656..d745f0f 100644 --- a/NasaPod/Nasa.csproj +++ b/NasaPod/Nasa.csproj @@ -20,8 +20,8 @@ False https://github.com/Nerdomante/NasaAPOD https://github.com/Nerdomante/NasaAPOD - 1.2.4 - 1.2.4 + 1.2.5 + 1.2.5