Use more user-friendly warning

This commit is contained in:
Łukasz Domeradzki
2025-12-14 02:26:34 +01:00
parent f0dfbc5ee4
commit 23f9f58f6c
2 changed files with 5 additions and 2 deletions

View File

@@ -298,7 +298,7 @@ internal static class OS {
} catch (ConnectException e) {
// Possible if no DBus is available at all
ASF.ArchiLogger.LogGenericDebuggingException(e);
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(connection)));
ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies);
return;
}
@@ -339,7 +339,7 @@ internal static class OS {
} catch (DBusException e) {
// Possible if login manager does not support inhibit, although that should be super rare
ASF.ArchiLogger.LogGenericDebuggingException(e);
ASF.ArchiLogger.LogGenericError(Strings.FormatWarningFailedWithError(nameof(connection)));
ASF.ArchiLogger.LogGenericWarning(Strings.WarningNoSystemRequiredLinuxDependencies);
return;
}

View File

@@ -800,4 +800,7 @@ Process uptime: {1}</value>
<value>Input: {0}</value>
<comment>{0} will be replaced by text input from the user.</comment>
</data>
<data name="WarningNoSystemRequiredLinuxDependencies" xml:space="preserve">
<value>You've declared --system-required, although your OS is missing required dependencies for that feature to work. Consider installing dbus, although you can also safely ignore this warning if you do not require inhibition to work properly.</value>
</data>
</root>