On 1/12/21 1:33 AM, ToddAndMargo via users wrote:
I need help with this call:
https://developer.gnome.org/gtk3/stable/gtk3-Clipboards.html#gtk-clipboard-set-text
The following sample states:
https://github.com/bstpierre/gtk-examples/blob/master/c/clipboard_simple.c
// NOTE: If you test this without a clipboard manager running, the
// new text saved to the clipboard will disappear as soon as this
// program exits.
xclip does not have this issue, and I can't figure out why.
https://sourceforge.net/p/xclip/code/HEAD/tree/trunk/xclip.c
How do I make my text write to the clipboard persistent?
Does your program have that problem? Are you running Gnome? My
understanding is that Gnome automatically grabs any clipboard contents
so that they do persist after the program exits. So effectively, you
always have a clipboard manager running as mentioned in the doc.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx