another attempt at fixing nvidia startup (#2506)

* another attempt at fixing nvidia startup

* update dependencies
This commit is contained in:
Jason Dove
2025-10-09 21:36:55 -05:00
committed by GitHub
parent dba5485300
commit d5fd8e7be6
6 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -57,7 +57,7 @@
<PackageReference Include="MudBlazor" Version="8.13.0" />
<PackageReference Include="NaturalSort.Extension" Version="4.4.0" />
<PackageReference Include="Refit.HttpClientFactory" Version="8.0.0" />
<PackageReference Include="Scalar.AspNetCore" Version="2.8.10" />
<PackageReference Include="Scalar.AspNetCore" Version="2.8.11" />
<PackageReference Include="Serilog" Version="4.3.0" />
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="9.0.0" />
@@ -17,7 +17,14 @@ public class PlatformSettingsService(IServiceScopeFactory serviceScopeFactory) :
IRuntimeInfo runtimeInfo = scope.ServiceProvider.GetRequiredService<IRuntimeInfo>();
if (runtimeInfo != null && runtimeInfo.IsOSPlatform(OSPlatform.Linux))
{
NvEncSharpRedirector.Init();
try
{
NvEncSharpRedirector.Init();
}
catch (DllNotFoundException)
{
// do nothing
}
if (Directory.Exists("/dev/dri"))
{