-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Regression] Copy entry does not seem to copy anything on the clipboard #56
Comments
Entry "Drag and Drop" and Copy/Paste use a special clipboard: EntryClipboard (revelation.py:331, data.py:146). |
It does not seem to handle it in the same instance, for example, if I want to use one as a template of a new one. |
Sometimes (not always) for Paste to work, you have to be sure that EntryTree widget got the focus by pressing Mouse Left button on the empty space in the EntryTree widget. |
I tried the following steps in both Revelation 0.4.14 and master:
In Revelation 0.4.14 the got a duplicated entry under the current one. The status bar shows Entries copied and later Entries pasted. In Revelation master I only get the status bar Entries copied. Both of them on a Wayland session. Gnome 3.36.3 (Ubuntu 20.04). |
I am afraid this is a problem/feature of Wayland. According to https://wiki.gnome.org/Initiatives/Wayland/PrimarySelection: And from https://wiki.archlinux.org/index.php/wayland Thus, until a better workaround is found, to get copy/paste working on entries you have to set GDK_BACKEND=x11 before running revelation Can you please confirm that with GDK_BACKEND=x11 copy/paste in revelation works as expected? |
With |
Why cannot we use the same clipboard? or in other words, why do we need to different clipboards: default and custom one? Although the sentence quote there, I think is more related to having PRIMARY and CLIPBOARD, where PRIMARY is what the user gets when storing something just by selecting a text. It may be coincidence. |
I don't know for sure, but I guess it is for security reasons. |
We may need to check the logs, or ChangeLog to check if that was the rationale. It could also be that the data copied has a special format.
Or any application that "listens" to that clipboard. That said, when we copy the password, we make it available to every application. Anyhow, the use case is to duplicate an entry. We can provide just that, duplicating the entry underneath the current one. Later the use can move it. Or, we can offer “Duplicate to…”, to duplicate the entry in a different folder. Later we can duplicate to another instance via a D-Bus. |
Overview
PyGObject does not suspport
Gtk.Clipboard.set_with_data
dueto a limitation in introspecting with more than one callback.
That was the method used with Gtk2, but with the new port does not
work.
Although, the statusbar says the entry was copied, the clipboard looks
unchanged.
Steps to Reproduce
Copy
or press Ctrl+CExpected Behavior
The clipboard should contain a text representation of the entry
Actual Behavior
The clipboard does not seem to hold anything.
Context
Revelation - 0.5.3
Operating System: Ubuntu 20.04
Desktop Env: Gnome
Windowing System: Wayland
The text was updated successfully, but these errors were encountered: