-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Translate from primary selection not work #407
Comments
Experiencing the same issue. Dialect 2.5.0, installed via flatpak. |
Identified another issue: clipboard history is only available for running apps. |
If you use the paste button in Dialect, do you get the same error? |
Paste button works fine if I have contents in my clipboard. |
Right, @mufeedali confirmed me that he could reproduce the problem, but I can't in my Fedora setup. @ivan-toriya could you give me info about your system? I can get the selection activating Dialect once. |
@rafaelmardojai |
@rafaelmardojai |
@ivan-toriya Nope. |
If you have |
@rafaelmardojai Thanks for the workaround hint. |
You need to focus on Dialect window while the second run is done. It looks like it is a Wayland thing that prevents a window from reading the clipboard unless you are currently focusing on it. https://wayland.app/protocols/primary-selection-unstable-v1 The result will differ depending on the timing of execution and the desktop environment behaviour (e.g. auto focus on new opened windows). That's why some might not be able to reproduce. @rafaelmardojai can we wait for the user to focus on the window before reading the clipboard? This should solve the issue. |
@rafaelmardojai It seems that the primary selection can be correctly filled in with #408 . However, now whenever the |
@FusionGold should be fixed now, could you test? |
@rafaelmardojai Everything seems fine for me. Thanks for your hard work! |
I am encountering an issue with
Dialect
, both when installed via AUR (dialect-git) and Flatpak on my Archlinux Gnome Wayland desktop environment. When runningdialect -n
from terminal and attempting to translate from the primary selection, the following error occurs:Steps to Reproduce:
wl-paste --primary
can paste the content.LANG=C flatpak run app.drey.Dialect -n
Dialect
window poped up with empty input and the above error message.The text was updated successfully, but these errors were encountered: