On 1/12/21 1:43 AM, Samuel Sieb wrote:
> 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-clipboar...
>>
>> 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.
I am not top that point yet. Another programmer I have
been collaborating with has and he does have the problem.