Skip to content

Commit 23ecae4

Browse files
NagyViktclaude
andcommitted
Tie flashpasted to graphical-session.target
The unit needs Wayland and X11 to be available before it starts — without a graphical session, both `wl-clipboard-rs` and the X11 selection owner have nothing to bind to. `default.target` activates at login, which is too early on this stack (Wayland comes up shortly after, and the early daemon then sits without a usable display). Move to `graphical-session.target` so systemd starts the daemon once the display is actually live; keeps the docs in sync with the shipped unit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c9e4bc9 commit 23ecae4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ RestartSec=2
130130
Environment=RUST_LOG=info
131131
132132
[Install]
133-
WantedBy=default.target
133+
WantedBy=graphical-session.target
134134
EOF
135135
systemctl --user daemon-reload
136136
systemctl --user enable --now flashpasted.service

systemd/flashpasted.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ RestartSec=2
1212
Environment=RUST_LOG=info
1313

1414
[Install]
15-
WantedBy=default.target
15+
WantedBy=graphical-session.target

0 commit comments

Comments
 (0)