another attempt at fixing nvidia startup (#2506)
* another attempt at fixing nvidia startup * update dependencies
This commit is contained in:
@@ -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"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user