Skip to content

Commit 07b7a5d

Browse files
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

3 files changed

+288
-213
lines changed

clipmaster@gnome.extension/metadata.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
"uuid": "clipmaster@gnome.extension",
33
"name": "ClipMaster",
44
"description": "ClipMaster is a clipboard manager with history, image support, favorites, and optional themes. Follows system dark/light preference by default.",
5-
"version": 2,
6-
"shell-version": ["45", "46", "47", "48", "49"],
5+
"version": 3,
6+
"shell-version": [
7+
"45",
8+
"46",
9+
"47",
10+
"48",
11+
"49"
12+
],
713
"url": "https://github.com/sfnemis/ClipMaster",
814
"settings-schema": "org.gnome.shell.extensions.clipmaster",
915
"gettext-domain": "clipmaster",
1016
"donations": {
1117
"github": "sfnemis"
1218
}
13-
}
14-
19+
}

0 commit comments

Comments
 (0)