summaryrefslogtreecommitdiffstats
path: root/x/.local/bin
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2017-07-30 20:46:53 -0400
committerAmin Bandali <amin@aminb.org>2017-07-30 20:46:53 -0400
commit85e3148ba10e276e6b8314908d8e38b4d375640e (patch)
treef07e29e1fc9b11c63acd84f8d411264a32227b4d /x/.local/bin
parent4f7d279faeeb551fcff6388b6caa7b231a8254d3 (diff)
downloadconfigs-85e3148ba10e276e6b8314908d8e38b4d375640e.tar.gz
configs-85e3148ba10e276e6b8314908d8e38b4d375640e.tar.xz
configs-85e3148ba10e276e6b8314908d8e38b4d375640e.zip
Little script for unlocking Default GNOME Keyring
Retrieve the password of the Default keyring from the Login keyring and use it to unlock the Default keyring.
Diffstat (limited to 'x/.local/bin')
-rwxr-xr-xx/.local/bin/unlock-def-gk.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/x/.local/bin/unlock-def-gk.py b/x/.local/bin/unlock-def-gk.py
new file mode 100755
index 0000000..fbf9840
--- /dev/null
+++ b/x/.local/bin/unlock-def-gk.py
@@ -0,0 +1,4 @@
+#! /usr/bin/env python2
+import gnomekeyring as gk
+# list_item_ids_sync('login')[0] == 1L
+gk.unlock_sync('Default_keyring',gk.item_get_info_sync('login',1L).get_secret())