mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-02-07 05:34:50 +00:00
chore(deps): update dependency tmds.dbus.protocol to 0.90.0 (#3542)
* chore(deps): update dependency tmds.dbus.protocol to 0.90.0 * Adapt to breaking changes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Łukasz Domeradzki <JustArchi@JustArchi.net>
This commit is contained in:
@@ -283,7 +283,7 @@ internal static class OS {
|
||||
}
|
||||
|
||||
// Docs: https://systemd.io/INHIBITOR_LOCKS
|
||||
string? systemAddress = Address.System;
|
||||
string? systemAddress = DBusAddress.System;
|
||||
|
||||
if (string.IsNullOrEmpty(systemAddress)) {
|
||||
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(systemAddress)));
|
||||
@@ -291,11 +291,11 @@ internal static class OS {
|
||||
return;
|
||||
}
|
||||
|
||||
using Connection connection = new(systemAddress);
|
||||
using DBusConnection connection = new(systemAddress);
|
||||
|
||||
try {
|
||||
await connection.ConnectAsync().ConfigureAwait(false);
|
||||
} catch (ConnectException e) {
|
||||
} catch (DBusConnectionException e) {
|
||||
// Possible if no DBus is available at all
|
||||
ASF.ArchiLogger.LogGenericDebuggingException(e);
|
||||
ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies);
|
||||
@@ -336,16 +336,10 @@ internal static class OS {
|
||||
return reader.ReadHandle<SafeFileHandle>();
|
||||
}
|
||||
).ConfigureAwait(false);
|
||||
} catch (DBusException e) {
|
||||
} catch (DBusMessageException e) {
|
||||
// Possible if login manager does not support inhibit, although that should be super rare
|
||||
ASF.ArchiLogger.LogGenericDebuggingException(e);
|
||||
ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (InhibitLock == null) {
|
||||
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(InhibitLock)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,6 @@
|
||||
<PackageVersion Include="System.Composition" Version="10.0.2" />
|
||||
<PackageVersion Include="System.Composition.AttributedModel" Version="10.0.2" />
|
||||
<PackageVersion Include="System.Security.Cryptography.ProtectedData" Version="10.0.2" />
|
||||
<PackageVersion Include="Tmds.DBus.Protocol" Version="0.23.0" />
|
||||
<PackageVersion Include="Tmds.DBus.Protocol" Version="0.90.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user