Package Details: circle-to-search 1.2.2-1

Git Clone URL: https://aur.archlinux.org/circle-to-search.git (read-only, click to copy)
Package Base: circle-to-search
Description: Draw to select, search with Google Lens - Linux Wayland edition
Upstream URL: https://github.com/jaslrobinson/circle-to-search
Licenses: MIT
Submitter: jaslrobinson
Maintainer: jaslrobinson
Last Packager: jaslrobinson
Votes: 1
Popularity: 0.60
First Submitted: 2025-12-09 18:03 (UTC)
Last Updated: 2025-12-25 02:52 (UTC)

Dependencies (11)

Required by (0)

Sources (1)

Latest Comments

yochananmarqos commented on 2025-12-28 18:16 (UTC)

@jaslrobinson: I'm using GNOME as I mentioned below.

libnotify needs to be added as a dependency.

jaslrobinson commented on 2025-12-28 16:25 (UTC)

If you're on a wlroots compositor like Sway or Hyprland, you need grim. If you're on KDE, you need spectacle. If you're on GNOME 42+, the D-Bus API should work automatically (but requires the GNOME Shell to be running).

For the libnotify issue: You need to install libnotify: - Arch: pacman -S libnotify - Fedora: dnf install libnotify - Ubuntu/Debian: apt install libnotify-bin

jaslrobinson commented on 2025-12-28 16:21 (UTC)

@yochananmarqos: what are the details of your system?

yochananmarqos commented on 2025-12-25 18:03 (UTC)

@jaslrobinson: It still fails with 1.2.2:

Failed to take screenshot. Install grim (wlroots) or spectacle (KDE). GNOME uses built-in D-Bus API

By the way, there is a missing dependency on libnotify for the notify-send command.

jaslrobinson commented on 2025-12-25 02:50 (UTC)

replaced gnome-screenshot with the GNOME Shell D-Bus Screenshot API. 1.2.2

jaslrobinson commented on 2025-12-25 02:43 (UTC)

Fixed. The bug was that subprocess.run() raises FileNotFoundError when the executable doesn't exist, rather than returning a non-zero exit code.

Now the code catches this exception and properly falls back to checking for spectacle (KDE) or gnome-screenshot (GNOME).

yochananmarqos commented on 2025-12-25 00:40 (UTC) (edited on 2025-12-25 00:41 (UTC) by yochananmarqos)

Sorry, not working on GNOME. gnome-screenshot is deprecated. Why is it looking for grim?

❯ circle-to-search
Traceback (most recent call last):
  File "/usr/bin/circle-to-search", line 3006, in <module>
    main()
    ~~~~^^
  File "/usr/bin/circle-to-search", line 2818, in main
    screenshot_path = take_screenshot()
  File "/usr/bin/circle-to-search", line 2746, in take_screenshot
    if take_screenshot_with_tool(screenshot_path):
       ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/bin/circle-to-search", line 2689, in take_screenshot_with_tool
    tool = detect_screenshot_tool()
  File "/usr/bin/circle-to-search", line 2658, in detect_screenshot_tool
    result = subprocess.run(["grim", "-"], capture_output=True)
  File "/usr/lib/python3.13/subprocess.py", line 554, in run
    with Popen(*popenargs, **kwargs) as process:
         ~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 1039, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        pass_fds, cwd, env,
                        ^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
                        gid, gids, uid, umask,
                        ^^^^^^^^^^^^^^^^^^^^^^
                        start_new_session, process_group)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 1991, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'grim'