From c3c41fa9b35bb8970bed8f21cb1b9bf506d773a9 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Wed, 11 Jun 2025 09:58:35 -0400 Subject: [PATCH] Add a service to hopefully unlock kwallet on start --- files/systemd/user/unlock-kwallet.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 files/systemd/user/unlock-kwallet.service diff --git a/files/systemd/user/unlock-kwallet.service b/files/systemd/user/unlock-kwallet.service new file mode 100644 index 0000000..3215bd8 --- /dev/null +++ b/files/systemd/user/unlock-kwallet.service @@ -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 \ No newline at end of file