From 1e59f0215b74f28feda549aac7b5984af002b75c Mon Sep 17 00:00:00 2001 From: Martin Rodriguez Reboredo Date: Mon, 1 Jul 2024 13:38:39 -0300 Subject: [PATCH] Fix image search actions --- src/scripts/runaction/actionmanager.py | 2 +- src/scripts/runaction/actions/googleimagesearch.desktop | 2 +- src/scripts/runaction/actions/yandeximagesearch.desktop | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/runaction/actionmanager.py b/src/scripts/runaction/actionmanager.py index 0f6cf01fd..0d943b217 100644 --- a/src/scripts/runaction/actionmanager.py +++ b/src/scripts/runaction/actionmanager.py @@ -58,7 +58,7 @@ class ActionManager(QtCore.QObject): if action.testAction(cond, url): act = Falkon.Action(action.icon, action.title, self) - act.triggered.connect(lambda a=action, w=webView, u=url, t=text: self.execAction(a, w, u, t)) + act.triggered.connect(lambda checked, a=action, w=webView, u=url, t=text: self.execAction(a, w, u, t)) if action.submenu: if action.submenu not in menus: menu = Falkon.Menu(action.menuTitle, webView) diff --git a/src/scripts/runaction/actions/googleimagesearch.desktop b/src/scripts/runaction/actions/googleimagesearch.desktop index c622726aa..a61e5c60d 100644 --- a/src/scripts/runaction/actions/googleimagesearch.desktop +++ b/src/scripts/runaction/actions/googleimagesearch.desktop @@ -91,4 +91,4 @@ Type=Service X-RunAction-Type="Url" X-RunAction-TypeCondition="Image" X-RunAction-Submenu="search_with" -X-RunAction-Exec="https://www.google.com/searchbyimage?site=search&image_url={url}" +X-RunAction-Exec="https://lens.google.com/uploadbyurl?url={url}" diff --git a/src/scripts/runaction/actions/yandeximagesearch.desktop b/src/scripts/runaction/actions/yandeximagesearch.desktop index e18598fb5..d594544f8 100644 --- a/src/scripts/runaction/actions/yandeximagesearch.desktop +++ b/src/scripts/runaction/actions/yandeximagesearch.desktop @@ -89,4 +89,4 @@ Type=Service X-RunAction-Type="Url" X-RunAction-TypeCondition="Image" X-RunAction-Submenu="search_with" -X-RunAction-Exec="https://yandex.com/images/search?&img_url={url}&rpt=imageview" +X-RunAction-Exec="https://yandex.com/images/search?rpt=imageview&url={url}"