Skip to content

Commit

Permalink
set startup path using executing assembly location
Browse files Browse the repository at this point in the history
  • Loading branch information
tewarid committed May 18, 2020
1 parent 234ea39 commit e89f433
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NotificationTool/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using DesktopBridge;
using Microsoft.Win32;
using System;
using System.Reflection;
using System.Windows.Forms;

namespace NotificationTool
Expand Down Expand Up @@ -99,7 +100,7 @@ private void SetStartup()

if (runAtStartup.Checked)
{
rk.SetValue(this.Text, Application.ExecutablePath);
rk.SetValue(this.Text, Assembly.GetExecutingAssembly().Location);
}
else
{
Expand Down

0 comments on commit e89f433

Please sign in to comment.