Skip to content

Commit

Permalink
Autostart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Naamloos committed May 12, 2022
1 parent 657e67e commit fe3c7e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/FlippedTaskbar11/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ private void doSetupStuff()
key.DeleteValue(REGISTRY_ITEM, false);
}

key.SetValue(REGISTRY_ITEM, Assembly.GetEntryAssembly().Location);
var path = Assembly.GetEntryAssembly().Location;
if (path.EndsWith(".dll"))
path = path.Replace(".dll", ".exe");
key.SetValue(REGISTRY_ITEM, path);
}

config.FirstRun = false;
Expand Down

0 comments on commit fe3c7e6

Please sign in to comment.