Little script for unlocking Default GNOME Keyring
authorAmin Bandali <amin@aminb.org>
Mon, 31 Jul 2017 00:46:53 +0000 (20:46 -0400)
committerAmin Bandali <amin@aminb.org>
Mon, 31 Jul 2017 00:46:53 +0000 (20:46 -0400)
Retrieve the password of the Default keyring from
the Login keyring and use it to unlock the Default
keyring.

x/.local/bin/unlock-def-gk.py [new file with mode: 0755]
x/.xprofile

diff --git a/x/.local/bin/unlock-def-gk.py b/x/.local/bin/unlock-def-gk.py
new file mode 100755 (executable)
index 0000000..fbf9840
--- /dev/null
@@ -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())
index 3117fc7..055725d 100644 (file)
@@ -5,4 +5,5 @@ source ~/.zprofile
 export _JAVA_AWT_WM_NONREPARENTING=1
 export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
 
 export _JAVA_AWT_WM_NONREPARENTING=1
 export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
 
+unlock-def-gk.py &
 bspwm &
 bspwm &