diff options
| author | Craig Jennings <c@cjennings.net> | 2026-02-01 14:47:55 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-02-01 14:47:55 -0600 |
| commit | 72c4bc88b87d7e82b10031e388255241fdf80206 (patch) | |
| tree | 4a612ecc3e171e603a7dda6c7fea56af12e86e97 | |
| parent | fac7b9821a0bd461bb09e88da685507c4a37166c (diff) | |
| download | archsetup-72c4bc88b87d7e82b10031e388255241fdf80206.tar.gz archsetup-72c4bc88b87d7e82b10031e388255241fdf80206.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-x | archsetup | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
