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 | cbc14b8694cad7b8fd9c2890d04b6cd744521235 (patch) | |
| tree | 75ca2bceba65e1979cf6b02720f36ea5e1230c89 | |
| parent | ae36f400607550b10fbada61545a36ad05afddf4 (diff) | |
| download | archsetup-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-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 |
