<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hello.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
GTK uses X11 and under X, there isn't really a clipboard.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
See <a href="https://unix.stackexchange.com/questions/450508/how-to-keep-clipboard-content-from-xterm-after-closing-it-like-firefox-or-le" id="LPNoLPOWALinkPreview">
https://unix.stackexchange.com/questions/450508/how-to-keep-clipboard-content-from-xterm-after-closing-it-like-firefox-or-le</a></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Firefox has his own clipboard manager.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
The easiest is to use a clipboard manager, for example with <font size="2"><span style="font-size:11pt">XFCE: xfce4-clipman<br>
</span></font></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<font size="2"><span style="font-size:11pt">( To install : sudo apt-get install clipman and to run :
<font size="2"><span style="font-size:11pt">xfce4-clipman</span></font> )</span></font></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<font size="2"><span style="font-size:11pt"><br>
</span></font></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<font size="2"><span style="font-size:11pt">Just run it before your application and use it after close your application.</span></font></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<font size="2"><span style="font-size:11pt"><br>
</span></font></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<font size="2"><span style="font-size:11pt">If you want create your own clipboard manager, like Firefox does, it is more tricky...</span></font><br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> lazarus <lazarus-bounces@lists.lazarus-ide.org> de la part de John Landmesser via lazarus <lazarus@lists.lazarus-ide.org><br>
<b>Envoyé :</b> vendredi 22 avril 2022 12:54<br>
<b>À :</b> lazarus@lists.lazarus-ide.org <lazarus@lists.lazarus-ide.org><br>
<b>Cc :</b> John Landmesser <jmlandmesser@gmx.de><br>
<b>Objet :</b> [Lazarus] Lazarus GTK clears clipboard on exit</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText elementToProof">History:<br>
<br>
I'm fighting with google-chrome-stable on Manjaro Linux XFCE that clears<br>
clipboard history when closed.<br>
<br>
Searched in vain with google but just noticed: gtk applications as<br>
lazarus-ide does it also and clears history on exit. Same with apps<br>
developed with lazarus.<br>
<br>
I rember, but not shure, that this behaviour of an application is <br>
"usual" on linux??<br>
<br>
Firefox for example is not doing this ...<br>
<br>
Info:<br>
<br>
Lazarus 2.3.0 (rev main-2_3-1125-g468f788b36) FPC 3.2.2 x86_64-linux-gtk2<br>
<br>
Why do i asked this? Makes me crazy if i searched with google , found<br>
something useful, copied, closed Chrome and shit: its gone. I have a<br>
clipboard manager copyq where i can activate this item again ...<br>
annoying :-(<br>
<br>
<br>
Tipps are welcome<br>
<br>
John<br>
<br>
-- <br>
_______________________________________________<br>
lazarus mailing list<br>
lazarus@lists.lazarus-ide.org<br>
<a href="https://lists.lazarus-ide.org/listinfo/lazarus" data-auth="NotApplicable">https://lists.lazarus-ide.org/listinfo/lazarus</a><br>
</div>
</span></font></div>
</body>
</html>