mirror of https://github.com/laurent22/joplin.git
Issue https://github.com/laurent22/joplin/issues/3711 This patch replaces the 'isLinux' check by a more restrictive version which fixes the false positive in BSD systems. This was causing Joplin not to load due to the lack of X11 in headless mode.pull/3716/head
parent
e108fdb1d8
commit
652748f969
|
@ -17,7 +17,7 @@ const { shim } = require('lib/shim.js');
|
|||
|
||||
let keytar:any;
|
||||
try {
|
||||
keytar = shim.isLinux() || shim.isPortable() ? null : require('keytar');
|
||||
keytar = (shim.isWindows() || shim.isMac()) && !shim.isPortable() ? require('keytar') : null;
|
||||
} catch (error) {
|
||||
console.error('Cannot load keytar - keychain support will be disabled', error);
|
||||
keytar = null;
|
||||
|
|
Loading…
Reference in New Issue