Add a service to hopefully unlock kwallet on start
All checks were successful
bluebuild-nvidia / Build Custom Image (recipe_nvidia.yml) (pull_request) Successful in 10m56s
bluebuild / Build Custom Image (recipe.yml) (pull_request) Successful in 7m55s

This commit is contained in:
2025-06-11 09:58:35 -04:00
parent 5028f8b3c5
commit c3c41fa9b3

View File

@@ -0,0 +1,17 @@
[Unit]
Description=Unlocks kwallet for hyprland on login.
# order startup after WM
After=graphical-session.target
[Service]
Type=exec
# Repurpose XDG Autostart filtering
ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "wlroots:sway:Wayfire:labwc:Hyprland" ""
ExecStart=/usr/libexec/pam_kwallet_init
Slice=app-graphical.slice
[Install]
WantedBy=graphical-session.target
# Alternatively can be wanted by specific WMs' targets
# Should also be duplicated in 'After=' to avoid ordering loop
#WantedBy=wayland-session@hyprland.desktop.target