Bug 497384 - Lost notes content after changing desktop from folder view to desktop only.
Summary: Lost notes content after changing desktop from folder view to desktop only.
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (show other bugs)
Version: 6.2.4
Platform: Fedora RPMs Linux
: HI critical
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-12 17:20 UTC by goo
Modified: 2025-01-14 14:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.0
Sentry Crash Report:


Attachments
plasmashell crash when applying new containment type (23.76 KB, text/vnd.kde.kcrash-report)
2024-12-12 18:46 UTC, Nate Graham
Details
desktop layout change from folder to desktop containment (93.61 KB, text/plain)
2024-12-12 19:26 UTC, goo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description goo 2024-12-12 17:20:47 UTC
SUMMARY
I have a few sticky note widgets on my desktop.
I have lost their contents after changing desktop from displaying files and folders to desktop only as the widget is apparently reloading itself and being assigned a new uuid.

STEPS TO REPRODUCE
1. Add a sticky note widget in your desktop and write something on it.
2. Open desktop settings and switch from folder view to desktop only or viceversa.


OBSERVED RESULT
The sticky note widget will lose all of its content.

EXPECTED RESULT
Sticky notes should retain their content after changing desktop settings.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-12-12 18:40:19 UTC
So you're saying that after going from desktop back to folder, your Notes widget that you added to the Folder containment is still there, but it's lost all the text in it? That would be quite bad.
Comment 2 Nate Graham 2024-12-12 18:46:37 UTC
Created attachment 176562 [details]
plasmashell crash when applying new containment type

While trying to reproduce this, I managed to encounter something similarly bad.

Changing from Desktop containment back to Folder containment using the "Apply" button in the placeholder message made Plasma crash (backtrace attached). Thereafter, the Notes widget I added to the desktop was just *gone*. Did you encounter any Plasma crashes in the process of repeatedly switching between Folder and Desktop? Did your Notes widget disappear entirely, or did it just lose its text?
Comment 3 goo 2024-12-12 19:26:32 UTC
Created attachment 176563 [details]
desktop layout change from folder to desktop containment
Comment 4 goo 2024-12-12 19:27:58 UTC
Notes contents were gone immediately after pressing Apply to confirm the change from folder to desktop containment. The widgets apparently have been replaced by a new empty one with a different disposition in the desktop.
plasmashell apparently did not crash as it is still running with the same pid.
Luckily notes contents of the old sticky notes are recoverable from ~/.local/share/plasma_notes/

Now I am on another computer and was not able to reproduce this bug when changing desktop containment.

I attach the journal log of what happened the moment the sticky notes where gone
Comment 5 TraceyC 2024-12-25 02:37:34 UTC
I just had similar happen on plasma 6.2.4

Laptop screen, 2 external monitors
Notes widget on 2nd (right most) external monitor, with contents

1. Moved note from 2nd external screen to first external screen (between laptop screen and rightmost monitor

Text appeared in the note briefly after it moved, then disappeared

Let me know if I should file this separately
Comment 6 TraceyC 2024-12-25 02:43:56 UTC
As when this has happened before, I found the note with the previous text in 
    ~/.local/share/plasma_notes

A new note had been created, with no text, and that was what the desktop now showed

As a workaround I copied and pasted the old note text into the new one. This is obviously not an actual solution.
Comment 7 Marco Martin 2025-01-14 12:44:05 UTC
does this still happens on current master?
i suspect the mentioned backtrace and consequent loss of contents might be fixed by 239ffd7014b0ba93fe4be3079e1d6352dcea25a5 in plasma-desktop
Comment 8 Marco Martin 2025-01-14 12:47:30 UTC
Reopen if it still happens on a commit on plasma-desktop more recent than 239ffd7014b0ba93fe4be3079e1d6352dcea25a5