Hello. GTK uses X11 and under X, there isn't really a clipboard.
See https://unix.stackexchange.com/questions/450508/how-to-keep-clipboard-content-from-xterm-after-closing-it-like-firefox-or-le Firefox has his own clipboard manager. The easiest is to use a clipboard manager, for example with XFCE: xfce4-clipman ( To install : sudo apt-get install clipman and to run : xfce4-clipman ) Just run it before your application and use it after close your application. If you want create your own clipboard manager, like Firefox does, it is more tricky... ________________________________ De : lazarus <[email protected]> de la part de John Landmesser via lazarus <[email protected]> Envoyé : vendredi 22 avril 2022 12:54 À : [email protected] <[email protected]> Cc : John Landmesser <[email protected]> Objet : [Lazarus] Lazarus GTK clears clipboard on exit History: I'm fighting with google-chrome-stable on Manjaro Linux XFCE that clears clipboard history when closed. Searched in vain with google but just noticed: gtk applications as lazarus-ide does it also and clears history on exit. Same with apps developed with lazarus. I rember, but not shure, that this behaviour of an application is "usual" on linux?? Firefox for example is not doing this ... Info: Lazarus 2.3.0 (rev main-2_3-1125-g468f788b36) FPC 3.2.2 x86_64-linux-gtk2 Why do i asked this? Makes me crazy if i searched with google , found something useful, copied, closed Chrome and shit: its gone. I have a clipboard manager copyq where i can activate this item again ... annoying :-( Tipps are welcome John -- _______________________________________________ lazarus mailing list [email protected] https://lists.lazarus-ide.org/listinfo/lazarus
-- _______________________________________________ lazarus mailing list [email protected] https://lists.lazarus-ide.org/listinfo/lazarus
