Bug 510776 - Any error messages from the underlying service aren't shown in the UI
Summary: Any error messages from the underlying service aren't shown in the UI
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_krdpserver (other bugs)
Version First Reported In: 6.5.80
Platform: KDE Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2025-10-19 04:26 UTC by Nate Graham
Modified: 2025-11-07 23:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2025-10-19 04:26:27 UTC
STEPS TO REPRODUCE
Follow the steps in Bug 510775. i.e.:
1. Have the KCM in its default state (1 or more system users, none checked; no additional users)
2. Click the on/off switch to turn on the server


OBSERVED RESULT
The switch turns on and then immediately turns off again, with no explanation. `systemctl status --user app-org.kde.krdpserver.service` reveals what happened:

Oct 17 14:35:35 engine krdpserver[43762]: No users configured for login. Either pass a username/password or configure users using kcm_krdp.

This error message should be shown in the UI somewhere. A Kirigami.InlineMessage in the header would probably be adequate.
Comment 1 David Edmundson 2025-10-20 11:15:54 UTC
We don't do this for any other service where we have a configuration UI.

Network / Pulseaudio / bluetooth.
Comment 2 Akseli Lahtinen 2025-11-06 08:16:33 UTC
Git commit bb4c9a0fc51bf67df58f9485c4093a9dcc282385 by Akseli Lahtinen.
Committed on 06/11/2025 at 08:16.
Pushed by akselmo into branch 'master'.

StartupFailureDialog: Show error inline message if KRDP fails to start

When starting krdpserver systemd unit, receive its state and handle it accordingly.
On failure, we show an inline message with the error from the units journal entry.
Related: bug 510775

M  +3    -0    CMakeLists.txt
A  +28   -0    cmake/FindSystemd.cmake
M  +1    -0    src/kcm/CMakeLists.txt
M  +162  -7    src/kcm/kcmkrdpserver.cpp
M  +42   -2    src/kcm/kcmkrdpserver.h
M  +27   -6    src/kcm/ui/main.qml

https://invent.kde.org/plasma/krdp/-/commit/bb4c9a0fc51bf67df58f9485c4093a9dcc282385