summaryrefslogtreecommitdiff
path: root/archsetup
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-29 12:17:28 -0600
committerCraig Jennings <c@cjennings.net>2026-01-29 12:17:28 -0600
commitdd2f7a242408cc86c7646c9595c3e9467c6bdd67 (patch)
tree0f68cfc9af435c31a7bf1f857099e077f3d0f441 /archsetup
parent82e2fcfd0915047033599290109b4fb055fa3cf6 (diff)
fix(keyring,hyprpm): use template keyring, fix hyprpm warning
Keyring: - Add empty-password login.keyring template to dotfiles - Remove init-keyring script (secretstorage API requires prompting) - Remove python-secretstorage dependency - Remove PAM gnome-keyring config (not needed with template approach) Hyprpm: - Only run hyprpm reload if plugins are installed - Prevents "Failed to load plugins" warning on fresh installs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'archsetup')
-rwxr-xr-xarchsetup17
1 files changed, 2 insertions, 15 deletions
diff --git a/archsetup b/archsetup
index 08b4b8d..9a9a04e 100755
--- a/archsetup
+++ b/archsetup
@@ -1517,7 +1517,6 @@ desktop_environment() {
pacman_install gnupg
pacman_install polkit
pacman_install gnome-keyring
- pacman_install python-secretstorage # for init-keyring script (empty password keyring)
pacman_install seahorse
pacman_install pass
@@ -1528,25 +1527,13 @@ desktop_environment() {
find /home/"$username"/.gnupg -type f -exec chmod 600 {} \;
find /home/"$username"/.gnupg -type d -exec chmod 700 {} \;
- # pre-create gnome-keyring structure so it uses 'login' keyring
- # (auto-unlocks at login) instead of creating 'Default_keyring' (prompts for password)
+ # pre-create gnome-keyring directory; empty-password login.keyring comes from dotfiles
+ # this allows auto-unlock without password prompt (works with autologin)
keyring_dir="/home/$username/.local/share/keyrings"
mkdir -p "$keyring_dir"
- echo "login" > "$keyring_dir/default"
chown -R "$username": "/home/$username/.local/share/keyrings"
chmod 700 "$keyring_dir"
- # configure PAM to auto-unlock gnome-keyring on console login
- # this passes the login password to gnome-keyring-daemon at session start
- action="configuring PAM for gnome-keyring auto-unlock" && display "task" "$action"
- pam_login="/etc/pam.d/login"
- if ! grep -q "pam_gnome_keyring.so" "$pam_login"; then
- # add auth line after the last auth line
- sed -i '/^auth.*system-local-login/a auth optional pam_gnome_keyring.so' "$pam_login"
- # add session line after the last session line
- sed -i '/^session.*system-local-login/a session optional pam_gnome_keyring.so auto_start' "$pam_login"
- fi
-
# Power Management
action="Power Management" && display "subtitle" "$action"