aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-01 14:47:55 -0600
committerCraig Jennings <c@cjennings.net>2026-02-01 14:47:55 -0600
commitcbc14b8694cad7b8fd9c2890d04b6cd744521235 (patch)
tree75ca2bceba65e1979cf6b02720f36ea5e1230c89
parentae36f400607550b10fbada61545a36ad05afddf4 (diff)
downloadarchsetup-cbc14b8694cad7b8fd9c2890d04b6cd744521235.tar.gz
archsetup-cbc14b8694cad7b8fd9c2890d04b6cd744521235.zip
fix(archsetup): create gnome-keyring default file
Set default keyring to 'login' by creating the default file during setup. This enables auto-unlock without password prompts when used with autologin.
-rwxr-xr-xarchsetup5
1 files changed, 3 insertions, 2 deletions
diff --git a/archsetup b/archsetup
index 120a353..ab00629 100755
--- a/archsetup
+++ b/archsetup
@@ -1573,11 +1573,12 @@ desktop_environment() {
find /home/"$username"/.gnupg -type f -exec chmod 600 {} \;
find /home/"$username"/.gnupg -type d -exec chmod 700 {} \;
- # pre-create gnome-keyring directory; empty-password login.keyring comes from dotfiles
+ # pre-create gnome-keyring directory and set default keyring to "login"
# this allows auto-unlock without password prompt (works with autologin)
keyring_dir="/home/$username/.local/share/keyrings"
mkdir -p "$keyring_dir"
- chown -R "$username": "/home/$username/.local/share/keyrings"
+ echo "login" > "$keyring_dir/default"
+ chown -R "$username": "$keyring_dir"
chmod 700 "$keyring_dir"
# Power Management