Hello, buddies!
If you, like me, have lost your sticky note widgets and want to recover them, this tutorial is for you:
- Visit
~/.local/share/plasma_notes
and run: ls -lt
. Find your sticky notes. You can use cat
to see the content of your sticky notes. You need to save their filenames. They look as UUIDs: 481e8b3e-7ce4-49ff-bd2d-24b566cd8c
.
- Create a new widget with a sticky note where it was earlier.
- Find its filename in the
plasma_notes
folder.
- Open
~/.config/plasma-org.kde.plasma.desktop-appletsrc
in your preferred editor.
- Find the new filename in this file and replace it with the old filename that you found in the first step.
- Repeat 2â5 steps until you have recreated all your sticky notes.
- Logout.
- Login.
- Profit!
2 Likes
In case you got your note empty due to plasma crash:
First of all try not to write on disk.
How to recover your lost plasma notes via Photorec:
Install the Testdisk
$ sudo apt install testdisk
sudo pacman -S testdisk
Mod edit:- Please only contribute content suitable for Manjaro.
Run photorec
as root
$ sudo photorec
- Select the disk with the lost files using the Down/Up arrow keys and press âEnterâ to [Proceed ].
- Select a partition using the âDown/Upâ arrow keys, then select [File Opt] using the âRightâ arrow key and press âEnterâ.
- Press the âsâ key to reset the selection of all file types, then scroll down and select only file types
tx?
and txt
using the âSpaceâ key, and then press the âbâ key and then âEnterâ to save this selection.
- Press the âQâ button to return to the previous partition selection screen.
- Use the âLeftâ arrow key to select [ Search ] and press âEnterâ.
- Select the correct file system for your partion and press âEnterâ.
- Now use the âDown/Upâ arrow keys to select the destination folder where the recovered files will be placed (donât select the same partition, use another mounted partition with enough space) and press the âCâ key to start the recovery search.
When finished, you got several recup_dir.*
folders in the destination folder with a large number of files recovered with PhotoreŃ. Now itâs time to navigate to the destination folder (via cd
) containing the recup_dir.*
folders.
and run this command to find the files containing the recovered notes:
$ ls -d recup_dir.* | while read i; do cd "$i"; grep -l '<html><head><meta name="qrichtext"' $(pwd)/*; cd ..; done
/media/user/data/rec/recup_dir.149/f134969072.html
/media/user/data/rec/recup_dir.150/f135503232.html
/media/user/data/rec/recup_dir.151/f138317200.html
/media/user/data/rec/recup_dir.159/f153771840.html
/media/user/data/rec/recup_dir.179/f195561096.html
/media/user/data/rec/recup_dir.180/f196286808.html
/media/user/data/rec/recup_dir.180/f196407856.html
/media/user/data/rec/recup_dir.180/f196544944.html
/media/user/data/rec/recup_dir.180/f196554976.html
/media/user/data/rec/recup_dir.196/f324575728.html
/media/user/data/rec/recup_dir.198/f325003864.html
/media/user/data/rec/recup_dir.81/f71891808.html
/media/user/data/rec/recup_dir.94/f90950656.html
/media/user/data/rec/recup_dir.94/f91196936.html
/media/user/data/rec/recup_dir.96/f92791792.html