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:
renovate[bot]
2026-02-02 21:56:47 +01:00
committed by GitHub
parent 270cfcda38
commit 47a3549cb2
2 changed files with 5 additions and 11 deletions

View File

@@ -283,7 +283,7 @@ internal static class OS {
} }
// Docs: https://systemd.io/INHIBITOR_LOCKS // Docs: https://systemd.io/INHIBITOR_LOCKS
string? systemAddress = Address.System; string? systemAddress = DBusAddress.System;
if (string.IsNullOrEmpty(systemAddress)) { if (string.IsNullOrEmpty(systemAddress)) {
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(systemAddress))); ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(systemAddress)));
@@ -291,11 +291,11 @@ internal static class OS {
return; return;
} }
using Connection connection = new(systemAddress); using DBusConnection connection = new(systemAddress);
try { try {
await connection.ConnectAsync().ConfigureAwait(false); await connection.ConnectAsync().ConfigureAwait(false);
} catch (ConnectException e) { } catch (DBusConnectionException e) {
// Possible if no DBus is available at all // Possible if no DBus is available at all
ASF.ArchiLogger.LogGenericDebuggingException(e); ASF.ArchiLogger.LogGenericDebuggingException(e);
ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies); ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies);
@@ -336,16 +336,10 @@ internal static class OS {
return reader.ReadHandle<SafeFileHandle>(); return reader.ReadHandle<SafeFileHandle>();
} }
).ConfigureAwait(false); ).ConfigureAwait(false);
} catch (DBusException e) { } catch (DBusMessageException e) {
// Possible if login manager does not support inhibit, although that should be super rare // Possible if login manager does not support inhibit, although that should be super rare
ASF.ArchiLogger.LogGenericDebuggingException(e); ASF.ArchiLogger.LogGenericDebuggingException(e);
ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies); ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies);
return;
}
if (InhibitLock == null) {
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(InhibitLock)));
} }
} }

View File

@@ -21,6 +21,6 @@
<PackageVersion Include="System.Composition" Version="10.0.2" /> <PackageVersion Include="System.Composition" Version="10.0.2" />
<PackageVersion Include="System.Composition.AttributedModel" 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="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> </ItemGroup>
</Project> </Project>