Bug 437066

Summary: Widget loses Uptime sensor when Plasma is restarted
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: System MonitorAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: ahiemstra, nate, notmart
Priority: NOR    
Version: 5.21.90   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Patrick Silva 2021-05-13 23:52:18 UTC
SUMMARY
Reproducible on both Arch Linux (Plasma 5.22 beta) and neon unstable.

STEPS TO REPRODUCE
1. add System Monitor Sensor to desktop
2. open widget settings
3. select "Text only" display style and apply it
4. click on "Sensors details" section
5. click on "Text-only sensors" row
6. search for "uptime" sensor and add it
7. close widget settings by clicking on "OK" button
8. restart Plasma running "plasmashell --replace" with Krunner

OBSERVED RESULT
System Monitor Sensor widget is empty, Uptime sensor disappeared

EXPECTED RESULT
Uptime sensor should be preserved after we restart Plasma

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.21.90
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 1 Bug Janitor Service 2021-08-30 09:25:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libksysguard/-/merge_requests/185
Comment 2 David Redondo 2021-08-30 09:30:40 UTC
Git commit 528220d5c0981938a36be9e30af2ccd972672118 by David Redondo.
Committed on 30/08/2021 at 09:29.
Pushed by davidre into branch 'master'.

Anchor uptime regex to the start

Otherwise it matches the current id ('os/system/uptime')

M  +1    -1    faces/SensorFaceController.cpp

https://invent.kde.org/plasma/libksysguard/commit/528220d5c0981938a36be9e30af2ccd972672118
Comment 3 Patrick Silva 2021-09-16 13:06:30 UTC
it's still reproducible on Plasma 5.23 beta.

Operating System: Arch Linux
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 4 Patrick Silva 2021-10-20 10:34:57 UTC
Fixed on Arch Linux and neon unstable.