Skip to content

rofimoji insists on having a typer, even with -a copy or -a print #158

@vain

Description

@vain

With my current experimental Wayland setup, I don't have a typer available. I noticed that rofimoji doesn't like this situation, even when it doesn't actually require a typer.

For example:

$ rofimoji -a print
Traceback (most recent call last):
  File "/usr/bin/rofimoji", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/picker/__main__.py", line 9, in main
    StandaloneRofimoji().standalone()
    ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/picker/standalone.py", line 22, in __init__
    self.active_window = self.typer.get_active_window()
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/picker/typer/typer.py", line 26, in get_active_window
    raise NoTyperFoundException()
picker.typer.typer.NoTyperFoundException: Could not find a valid way to type characters.
Please check the required dependencies.

Explicitly specifying a typer, even though it's not installed and never used, can be used as a workaround:

$ command -v wtype
$ rofimoji --typer wtype -a print
👍

Bug or working as intended? :)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions