[Lazarus] Lazarus GTK clears clipboard on exit
Fred van Stappen
fiens at hotmail.com
Fri Apr 22 13:30:43 CEST 2022
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 <lazarus-bounces at lists.lazarus-ide.org> de la part de John Landmesser via lazarus <lazarus at lists.lazarus-ide.org>
Envoyé : vendredi 22 avril 2022 12:54
À : lazarus at lists.lazarus-ide.org <lazarus at lists.lazarus-ide.org>
Cc : John Landmesser <jmlandmesser at gmx.de>
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
lazarus at lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20220422/ef24350d/attachment.htm>
More information about the lazarus
mailing list