Commit 07b7a5d
committed
Store encryption key alongside database for better portability
When using custom storage or after system format, the encryption key
was lost because it was only stored in GSettings. Now the key is also
saved as a .key file next to clipboard.json, so encrypted data can be
recovered even after reinstalling the OS.
Changes:
- Database.js now loads key from .key file first, then falls back to
GSettings for backward compatibility
- Export now includes the .key file alongside clipboard.json
- Import now restores the .key file and updates GSettings
This ensures your clipboard history survives system migrations when
using custom storage locations like cloud-synced folders.1 parent 1e294eb commit 07b7a5d
File tree
3 files changed
+288
-213
lines changed- clipmaster@gnome.extension
- src/Manager
3 files changed
+288
-213
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
13 | | - | |
14 | | - | |
| 19 | + | |
0 commit comments