mirror of https://github.com/Jackett/Jackett
GetExecutingAssembly points to the DLL on .NET Core not the exe (#7140)
This commit is contained in:
parent
af6c7b530b
commit
2d56ce11b7
|
@ -1,4 +1,4 @@
|
|||
using Jackett.Common.Models.Config;
|
||||
using Jackett.Common.Models.Config;
|
||||
using Jackett.Common.Services;
|
||||
using Jackett.Common.Services.Interfaces;
|
||||
using Jackett.Common.Utils;
|
||||
|
@ -174,7 +174,7 @@ namespace Jackett.Tray
|
|||
{
|
||||
using (StreamWriter writer = new StreamWriter(ShortcutPath))
|
||||
{
|
||||
var appPath = Assembly.GetExecutingAssembly().Location;
|
||||
var appPath = Process.GetCurrentProcess().MainModule.FileName;
|
||||
writer.WriteLine("[InternetShortcut]");
|
||||
writer.WriteLine("URL=file:///" + appPath);
|
||||
writer.WriteLine("IconIndex=0");
|
||||
|
|
Loading…
Reference in New Issue