|
@ -91,7 +91,7 @@ const pipeErrorToCommand = (command, e) => |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
const runBitwardenDmenu = async () => { |
|
|
|
|
|
|
|
|
async function runBitwardenDmenu() { |
|
|
try { |
|
|
try { |
|
|
await menu({ |
|
|
await menu({ |
|
|
bwListArgs, |
|
|
bwListArgs, |
|
@ -108,7 +108,7 @@ const runBitwardenDmenu = async () => { |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
if (e instanceof CancelError) { |
|
|
if (e instanceof CancelError) { |
|
|
console.debug('cancelled bitwarden-dmenu early.') |
|
|
console.debug('cancelled bitwarden-dmenu early.') |
|
|
return { lockBitwardenAfter: 0, clearClipboardAfter: null } |
|
|
|
|
|
|
|
|
return { lockBitwardenAfter: sessionTimeout, clearClipboardAfter: null } |
|
|
} else if (onErrorCommand) await pipeErrorToCommand(onErrorCommand, e) |
|
|
} else if (onErrorCommand) await pipeErrorToCommand(onErrorCommand, e) |
|
|
else { |
|
|
else { |
|
|
console.error('an error occurred:') |
|
|
console.error('an error occurred:') |
|
|