What was copied is shown on the screen the moment the launcher opens, so a
password from a password manager sat there in clear.
- Dtlaunch*clipboardHistory, default False. Off: nothing is asked of the
clipboard's owner (no XFixes watch, no poll) and the hint line drops "the
clipboard". System Settings > Keyboard & Mouse > Shortcuts has the toggle
"The launcher keeps a history of what was copied"; it writes the resource
like the hot key does and restarts the launcher.
- On: a text that is new is kept only if its owner does not offer the target
x-kde-passwordManagerHint with the value "secret" (what KeePassXC, KDE Wallet
and others set; docs/reference/clipboard-password-hint.txt has the two
sources and what they do not say). An unchanged clipboard costs no second
request. The copy of the text is overwritten after use.
Measured (Xvfb, a small X program as the password manager, logging requests):
on: owners "ordinary-text-123" (no hint target), "hunter2-PASSWORD" (hint
"secret"), "second-ordinary-456": each got UTF8_STRING then the hint request;
the list shows the two ordinary texts, not the password. Off (no resource):
0 requests in total, empty list. The toggle in the real dtsystemsettings gives
the resource True, False, True; the indicator changes; the note fits. Cross
compile (build's flags): dtlaunch.c and input.c without a warning; make check
of dtlaunch passes. Not verified: a real password manager (the assumption
that its MIME type is an X11 target of that name is written in the reference
file), a launcher restart on a real session. The default is the task's; one
word in dtlaunch.c's resource table turns it back.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>