mirror of
https://github.com/Readarr/Readarr.git
synced 2026-09-19 09:46:28 -04:00
1 parent
d22ca1fe4f
commit
c61315b90e
1 file changed
+3
-3
@@ -24,12 +24,12 @@ public RuntimeInfo(IServiceProvider serviceProvider, Logger logger)
|
||||
serviceProvider.GetStatus(ServiceProvider.SERVICE_NAME) == ServiceControllerStatus.StartPending;
|
||||
|
||||
//Guarded to avoid issues when running in a non-managed process
|
||||
var entry = Assembly.GetEntryAssembly();
|
||||
var entry = Process.GetCurrentProcess().MainModule;
|
||||
|
||||
if (entry != null)
|
||||
{
|
||||
ExecutingApplication = entry.Location;
|
||||
IsWindowsTray = OsInfo.IsWindows && entry.ManifestModule.Name == $"{ProcessProvider.READARR_PROCESS_NAME}.exe";
|
||||
ExecutingApplication = entry.FileName;
|
||||
IsWindowsTray = OsInfo.IsWindows && entry.ModuleName == $"{ProcessProvider.READARR_PROCESS_NAME}.exe";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user