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 | a36b8dd29be6fcf5ad5c8a72882203da3548f288 (patch) | |
| tree | 75ca2bceba65e1979cf6b02720f36ea5e1230c89 /archsetup | |
| parent | eda8c76cce31f8938d6c3d139c7cbea264db97e1 (diff) | |
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.
Diffstat (limited to 'archsetup')
| -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 |
