Skip to content

Translate from primary selection not work #407

@FusionGold

Description

@FusionGold

I am encountering an issue with Dialect, both when installed via AUR (dialect-git) and Flatpak on my Archlinux Gnome Wayland desktop environment. When running dialect -n from terminal and attempting to translate from the primary selection, the following error occurs:

Traceback (most recent call last):
  File "/app/share/dialect/dialect/window.py", line 532, in on_paste
    text = clipboard.read_text_finish(result)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: g-io-error-quark: Cannot read from empty clipboard. (1)

Steps to Reproduce:

  1. Install Dialect via AUR (dialect-git) or Flatpak.
  2. In GNOME Text Editor, select a word and ensure wl-paste --primary can paste the content.
  3. With the flatpak version, run LANG=C flatpak run app.drey.Dialect -n
  4. Dialect window poped up with empty input and the above error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions