mirror of
https://github.com/Jackett/Jackett.git
synced 2026-09-24 16:09:53 +08:00
GetExecutingAssembly points to the DLL on .NET Core not the exe (#7140)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user