From 2a6daaafbb552d545001475078109e99c68e1717 Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Mon, 14 Nov 2022 14:34:19 -0700 Subject: [PATCH] Unlock keyring hack --- scripts/unlock-keyring-hack.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/unlock-keyring-hack.sh diff --git a/scripts/unlock-keyring-hack.sh b/scripts/unlock-keyring-hack.sh new file mode 100755 index 0000000..d35b7be --- /dev/null +++ b/scripts/unlock-keyring-hack.sh @@ -0,0 +1,11 @@ +#!/bin/sh +echo 'NOTE: This script will only work if launched via source or .' >&2 +echo -n 'Login password: ' >&2 +read -s _UNLOCK_PASSWORD || return +killall -q -u "$(whoami)" gnome-keyring-daemon +eval $(echo -n "${_UNLOCK_PASSWORD}" \ + | gnome-keyring-daemon --daemonize --login \ + | sed -e 's/^/export /') +unset _UNLOCK_PASSWORD +echo '' >&2 +