After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775311 - Clipboard contents are not available when exited
Clipboard contents are not available when exited
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-11-29 11:22 UTC by Kaartic
Modified: 2018-05-22 16:55 UTC
See Also:
GNOME target: ---
GNOME version: 3.23/3.24



Description Kaartic 2016-11-29 11:22:35 UTC
When some text is copied to the clipboard and the user exits the program before pasting it somewhere and tries to paste it after exiting the contents are not available for pasting. A similar bug was filed for another component. I guess it could be used as a reference https://bugzilla.gnome.org/show_bug.cgi?id=622049 .

Steps to reproduce: 
1. Open any document
2. Copy some text
3. Close the document
4. Try to paste the text somewhere

Expected results:
The contents are available for pasting

Actual results:
Contents are not available for pasting
Comment 1 José Aliste 2016-11-29 11:50:12 UTC
Is this not a "bug" of every linux application?
Comment 2 Kaartic 2016-11-30 06:42:26 UTC
(In reply to José Aliste from comment #1)
> Is this not a "bug" of every linux application?

I guess Mr. Andre Klapper hax answeredthat with those "See Also" links.
Comment 3 Kaartic 2016-11-30 06:45:50 UTC
Sorry about those typos, I find it difficult typing in desktop sites using my mobile. Also, Thanks Mr. Andre Klapper for adding those links.
Comment 4 Jason Crain 2016-11-30 07:00:41 UTC
If you mean Ctrl-C / Ctrl-V copy and paste, that's working fine for me.  Ctrl-V paste works after evince has been closed.

If you mean the X selection / middle click copy and paste, that's just how the X selection works.
Comment 5 Kaartic 2016-11-30 07:52:14 UTC
(In reply to Jason Crain from comment #4)
> If you mean Ctrl-C / Ctrl-V copy and paste, that's working fine for me. 
> Ctrl-V paste works after evince has been closed.
I did mean the Ctrl-C / Ctrl-V copy and paste.
I thought it was a general issue and everyone could reproduce this. Are you sure that evince exited completely before you tried to paste the contents?  I could still see the issue and could reproduce it all the time I try to. In case this is not a general issue the below are the details of my device
GNOME: v3.22.2
Graphics: Wayland
Base system: Debian GNU/Linux stretch/sid 64-bit


> If you mean the X selection / middle click copy and paste, that's just how
> the X selection works.

I don't know what you mean by this. Could you be more specific?
Comment 6 Kaartic 2016-11-30 07:54:27 UTC
(In reply to José Aliste from comment #1)
> Is this not a "bug" of every linux application?

To add to my previous comment, some applications seem to have taken alternative measures to fix this. For example, I could not see the in Firefox, nautilus,  Chrome.
Comment 7 José Aliste 2016-11-30 11:33:35 UTC
Oh. I see that probably adding a call to gtk_clipboard_store somewhere in our code before exiting should fix this... Should be easy to fix if you want to give it a try.
Comment 8 Jason Crain 2016-11-30 15:51:40 UTC
(In reply to Kaartic from comment #5)
> (In reply to Jason Crain from comment #4)
> GNOME: v3.22.2
> Graphics: Wayland
> Base system: Debian GNU/Linux stretch/sid 64-bit

It seems to be related to wayland.  Copy and paste works as expected under xorg, but does not persist under wayland.

> > If you mean the X selection / middle click copy and paste, that's just how
> > the X selection works.
> 
> I don't know what you mean by this. Could you be more specific?

It's another method of copy and paste from the X window system.  Select some text with the mouse and middle click to paste.
Comment 9 Kaartic 2016-12-13 09:30:12 UTC
(In reply to José Aliste from comment #7)
> Oh. I see that probably adding a call to gtk_clipboard_store somewhere in
> our code before exiting should fix this... Should be easy to fix if you want
> to give it a try.
I'm not much acquainted with the code for now. Will try if someone else doesn't solve this before I could catch up.
Comment 10 GNOME Infrastructure Team 2018-05-22 16:55:28 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/738.