You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-06 09:19:22 +02:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user