feat: expose safestorage backend information on linux (#38873)
* feat: expose safestorage backend information on linux
* Remove gnome-keyring
Refs 4609704
This commit is contained in:
parent
dc671804da
commit
34e7c3696a
9 changed files with 127 additions and 39 deletions
|
@ -6,6 +6,9 @@ const pathToEncryptedString = path.resolve(__dirname, '..', 'encrypted.txt');
|
|||
const readFile = fs.readFile;
|
||||
|
||||
app.whenReady().then(async () => {
|
||||
if (process.platform === 'linux') {
|
||||
safeStorage.setUsePlainTextEncryption(true);
|
||||
}
|
||||
const encryptedString = await readFile(pathToEncryptedString);
|
||||
const decrypted = safeStorage.decryptString(encryptedString);
|
||||
console.log(decrypted);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue