The password hint on the clipboard -- what a password manager offers and what dtlaunch does with it (t0080, 2'')
Read 2026-11-15 (web, two pages) and in ext/src/mcde/programs/dtlaunch/dtlaunch.c.  Question: how does a clipboard
history (dtlaunch shows what was copied the moment it opens) know that a text is a password, so that it leaves it out?

1. What the sources say (verbatim; no version or date is shown on either page)
   - https://copyq-de.readthedocs.io/de/stable/security.html, section "Secret Clipboard Data":
       "Detection is platform-specific. The clipboard formats that indicate secrets are:"
       "Linux -- x-kde-passwordManagerHint set to secret.  Used by KeePassXC, KDE Wallet, and other password managers."
       (the page writes it with a dash; the format name and the value "secret" are as quoted)
   - https://gitlab.xfce.org/panel-plugins/xfce4-clipman-plugin/-/issues/72 ("Suggestion: Honour password hint"):
       "Password managers like KeePassXC provide passwords with the `x-kde-passwordManagerHint` MIME type."
       "On Linux and BSD, clipboard managers are suggested to ignore values of this type."
   - A search the same day (KDE bug 458063, the Klipper commit "Do not insert secret data into history") says
     Klipper leaves such entries out and the hint is set on both the clipboard and the selection.  Not read at
     the source: only the two pages above were fetched.

2. What the sources do NOT say
   - Neither page says that the hint is offered as an X11 selection target (CLIPBOARD, PRIMARY).  The name is a MIME
     type; on X11 a toolkit that offers a MIME type as a selection target uses its name as the target atom, so the
     hint should be asked for as a target of that name -- this is the reading dtlaunch implements, NOT verified
     against KeePassXC (none on this host).  It is verified against a program that offers exactly this (section 4).
   - Not every password manager sets it; a text copied from a terminal or a browser's password field is not marked.

3. What dtlaunch does (dtlaunch.c, got_clipboard / got_hint)
   - It reads the text of CLIPBOARD as before (when the owner changes: XFixes; without XFixes every 5 s).
   - Only when the text is new (not the newest entry of the history) it asks the same owner for the target
     x-kde-passwordManagerHint.  A value starting with "secret" -> the text is NOT remembered; any other answer, or a
     failed conversion (the owner does not know the target) -> remembered as before.  An unchanged clipboard costs
     no second request.
   - The history is kept in memory only (HISTORY 50, MAXCLIP) and, since t0080, only when Dtlaunch*clipboardHistory
     is True (default False; System Settings > Keyboard > Shortcuts); without it nothing is asked of the owner.

4. Verified 2026-11-15 (Xvfb; a small X program stands in for the password manager: it owns CLIPBOARD, answers TARGETS,
   UTF8_STRING, and -- when told to -- x-kde-passwordManagerHint with the value "secret"; it logs every request)
   - History on (-xrm Dtlaunch*clipboardHistory:True): three owners in turn -- "ordinary-text-123" without the hint
     target, "hunter2-PASSWORD" with it, "second-ordinary-456" without it.  Each time the owner got two requests:
     UTF8_STRING, then x-kde-passwordManagerHint.  dtlaunch -show lists "[clip] second-ordinary-456" and
     "[clip] ordinary-text-123"; the password is not in the list.
   - History off (default, no resource): the owner got 0 requests in total; the list is empty; the hint line reads
     "Type to find a program, a setting, a snippet, or =1+2".
   - System Settings > Keyboard & Mouse > Shortcuts, toggle "The launcher keeps a history of what was copied": three
     clicks give the resource Dtlaunch*clipboardHistory: True, False, True (xrdb -query after each); the indicator
     changes (raised -> sunken).
   NOT verified: a real password manager (KeePassXC offers the hint as a Qt MIME type; that Qt turns it into an X11
   selection target of that name is the assumption of section 2); a launcher restart as the toggle does it on a
   real session (dtlaunch -quit then dtlaunch from CDE_INSTALLATION_TOP).
