Unlock keyring hack

This commit is contained in:
Logan Hunt 2022-11-14 14:34:19 -07:00
parent c697c51e19
commit 2a6daaafbb
No known key found for this signature in database
GPG Key ID: 8AC6A4B840C0EC49

11
scripts/unlock-keyring-hack.sh Executable file
View File

@ -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