summaryrefslogtreecommitdiff
path: root/archsetup
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
commita36b8dd29be6fcf5ad5c8a72882203da3548f288 (patch)
tree75ca2bceba65e1979cf6b02720f36ea5e1230c89 /archsetup
parenteda8c76cce31f8938d6c3d139c7cbea264db97e1 (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-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