fish: unlock gpg at login
This commit is contained in:
parent
2ea71424a7
commit
bd8e803a8d
1 changed files with 6 additions and 3 deletions
|
@ -95,7 +95,10 @@ gpg-connect-agent updatestartuptty /bye > /dev/null
|
||||||
# source: https://wiki.archlinux.org/index.php/Fish#Start_X_at_login
|
# source: https://wiki.archlinux.org/index.php/Fish#Start_X_at_login
|
||||||
# This must be at the bottom of this file
|
# This must be at the bottom of this file
|
||||||
if status --is-login
|
if status --is-login
|
||||||
if test -z "$DISPLAY" -a $XDG_VTNR = 1
|
if test -z "$DISPLAY" -a $XDG_VTNR = 1
|
||||||
exec startx -- -keeptty
|
# Unlock GPG keyring befor starting X.
|
||||||
end
|
# This makes some things easier.
|
||||||
|
echo "gpg unlock" | gpg -se -r me@mmk2410.org > /dev/null
|
||||||
|
exec startx -- -keeptty
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue