Created
July 22, 2022 14:17
-
-
Save sapphirecat/b78054477789f42d5b477c0517379886 to your computer and use it in GitHub Desktop.
lock a gnome-keyring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ring="${1-awsvault}" | |
exec dbus-send --session --type=method_call \ | |
--dest=org.gnome.keyring /org/freedesktop/secrets \ | |
org.freedesktop.Secret.Service.Lock \ | |
"array:objpath:/org/freedesktop/secrets/collection/${ring}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment