This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
addPassword
returns false
in minimal Linux installation #256
Open
Description
Prerequisites
Strictly speaking, this is not an Atom application, so not sure any of this info is relevant.
Description
- Package Version: 3.0.0
- Electron Version: 4.2.5
- OS: Ubuntu 18.04
An Electron application using keytar
fails to save a password using the addPassword
function while running on a minimal installation of Ubuntu 18.04.
Steps to Reproduce
- Install Ubuntu 18.04 using the Minimal option.
- Verify that
gnome-keyring
andlibsecret-1-0
are installed. - Download and extract a .tar.gz file containing an Electron application that uses keytar (see below for example code).
- Run the Electron application from the command line.
Expected behavior:
The example application should run as expected, outputting "Success!" at the end.
Actual behavior:
The example application outputs "Error: Unable to add password" is printed, and the application exits with an error.
Reproduces how often:
Every time the application is launched.
Additional Information
var keytar = require('keytar');
var addResult = keytar.addPassword("MyService", "MyAccount", "TEST_PASSWORD");
if (!addResult) {
console.log("Error: Unable to add password")
process.exit(1);
}
var getResult = keytar.getPassword("MyService", "MyAccount");
if (getResult !== "TEST_PASSWORD") {
console.log("Error: Unexpected password from password manager service");
process.exit(1);
}
keytar.deletePassword(testService, testAccount);
console.log("Success!");
I understand [email protected]
is pretty old, but it should still work against the libsecret
API, according to the documentation, right?