Bug 453673 - Make it possible to recover lost notes
Summary: Make it possible to recover lost notes
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notes widget (other bugs)
Version First Reported In: 6.2.4
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 487282 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-05-11 19:17 UTC by Luiz Angelo De Luca
Modified: 2025-09-02 05:11 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luiz Angelo De Luca 2022-05-11 19:17:12 UTC
When plasma lost track of an desktop and reset all applets, all notes are gone. It would be nice if we could list all existing notes (xml files are still there) and let the user re-add them.

STEPS TO REPRODUCE
1. plug a monitor
2. create a note on that monitor
3. unplug the monitor

OBSERVED RESULT
The note is gone forever until you get that exactly same monitor back.

EXPECTED RESULT
It should be possible to recover lost notes. Maybe a simple note manager inside its settings or a simple pop-up that asks if the user wishes to reuse an old note or create a new one (with possibly a way to delete old notes).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.24.5 on OpenSUSE Tumbleweed

ADDITIONAL INFORMATION
It would be nice to merge notes solutions in KDE into a single consistent app. We have knotes (standalone or inside kontact, but standalone does not start if kontact is open) and plasma-addon notes.
Comment 1 Nate Graham 2022-05-12 14:55:29 UTC
I have experienced this myself. It's incredibly frustrating.

Ideally we should fix the bug that causes it to happen in the first place. But this being user data, and user data being inviolably important, I think it's sane to have a backup/fallback mechanism as requested here.

FWIW the content lives in ~/.local/share/plasma_notes/.
Comment 2 jonzn4SUSE 2023-04-19 07:54:23 UTC
Just lost my notes widget today and had to put it back.  I keep my notes widget on my laptop screen and not my external screen which stops working often (Thank you Nvidia).


Operating System: openSUSE Tumbleweed 20230417
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.8
Kernel Version: 6.2.10-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Xeon® CPU E3-1535M v6 @ 3.10GHz
Memory: 62.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics P630
Manufacturer: HP
Product Name: HP ZBook 17 G4
Comment 3 Nate Graham 2024-05-24 01:40:36 UTC
*** Bug 487282 has been marked as a duplicate of this bug. ***
Comment 4 jens 2024-08-22 07:36:20 UTC
In Plasma 5.27.11 the same thing happens even if I just change the number of screens. 
I keep my notes on Screen 2 . If I unplug screen 4, my notes are gone and I end up with one empty Note on screen 2.

KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.116.0
Qt Version: 5.15.14 
Kernel Version: 6.10.5-gentoo  
Graphics Platform:  X11 
nvidia-drivers 550.107.02
Comment 5 Niccolò Venerandi 2025-08-26 08:10:14 UTC
Git commit 04badef38de928e8386c93b044fd9bd54e95c0bd by Niccolò Venerandi.
Committed on 26/08/2025 at 08:10.
Pushed by niccolove into branch 'master'.

Deduplicate multiple applets asking to use the same note file

This also trashes notes instead of deleting them, which
makes them recoverable.
Related: bug 508572

M  +1    -0    applets/notes/CMakeLists.txt
M  +1    -1    applets/notes/abstractnoteloader.h
M  +29   -6    applets/notes/filesystemnoteloader.cpp
M  +2    -1    applets/notes/filesystemnoteloader.h
M  +2    -2    applets/notes/notemanager.cpp
M  +1    -1    applets/notes/notemanager.h
M  +1    -1    applets/notes/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/04badef38de928e8386c93b044fd9bd54e95c0bd
Comment 6 Niccolò Venerandi 2025-08-26 08:13:33 UTC
Git commit 865efe1aca54fe167b3f4317ba303d0b5ce6756b by Niccolò Venerandi.
Committed on 26/08/2025 at 08:13.
Pushed by niccolove into branch 'Plasma/6.4'.

Deduplicate multiple applets asking to use the same note file

This also trashes notes instead of deleting them, which
makes them recoverable.
Related: bug 508572

Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Nate Graham <nate@kde.org>

M  +2    -0    applets/notes/CMakeLists.txt
M  +1    -1    applets/notes/abstractnoteloader.h
M  +29   -6    applets/notes/filesystemnoteloader.cpp
M  +2    -1    applets/notes/filesystemnoteloader.h
M  +2    -2    applets/notes/notemanager.cpp
M  +1    -1    applets/notes/notemanager.h
M  +1    -1    applets/notes/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/865efe1aca54fe167b3f4317ba303d0b5ce6756b