Clear clipboard history on session end #1

Closed
opened 2026-04-06 19:46:31 +02:00 by nevaforget · 0 comments
Owner

The cliphist clipboard history persists across session boundaries. When a user logs out and another session starts (or the same user logs back in), the previous clipboard contents are still available via Walker's clipboard provider.

Current setup:

  • cliphist stores in $XDG_RUNTIME_DIR/cliphist/db
  • Watchers started via spawn-sh-at-startup in niri config
  • No cleanup on session end

Possible approaches:

  • Add a cleanup hook to niri's session shutdown (if supported)
  • Use a systemd user service with ExecStop=cliphist wipe
  • Add a logout script that runs cliphist wipe
The cliphist clipboard history persists across session boundaries. When a user logs out and another session starts (or the same user logs back in), the previous clipboard contents are still available via Walker's clipboard provider. **Current setup:** - cliphist stores in \$XDG_RUNTIME_DIR/cliphist/db - Watchers started via spawn-sh-at-startup in niri config - No cleanup on session end **Possible approaches:** - Add a cleanup hook to niri's session shutdown (if supported) - Use a systemd user service with ExecStop=cliphist wipe - Add a logout script that runs cliphist wipe
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nevaforget/moonarch#1
No description provided.