From 9bca6de71ef88e7d710335dda52d2c7c8f2a9db7 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Sat, 22 Mar 2025 08:40:10 -0300 Subject: [PATCH] :boom: ags(runner/apps): fix app icon issues --- ags/runner/plugins/apps.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ags/runner/plugins/apps.ts b/ags/runner/plugins/apps.ts index 7dc8d97..3119187 100644 --- a/ags/runner/plugins/apps.ts +++ b/ags/runner/plugins/apps.ts @@ -1,8 +1,8 @@ -import AstalHyprland from "gi://AstalHyprland"; import { ResultWidget, ResultWidgetProps } from "../../widget/runner/ResultWidget"; import AstalApps from "gi://AstalApps"; -import { getAstalApps } from "../../scripts/apps"; +import { cleanExec, getAstalApps } from "../../scripts/apps"; import { Runner } from "../Runner"; +import { Astal } from "astal/gtk3"; export const PluginApps = { // Do not provide prefix, so it's always ran. @@ -12,9 +12,9 @@ export const PluginApps = { new ResultWidget({ title: app.get_name(), description: app.get_description(), - icon: app.iconName, - onClick: () => AstalHyprland.get_default().dispatch("exec", app.get_executable()) + icon: Astal.Icon.lookup_icon(app.iconName) ? app.iconName : "application-x-executable-symbolic", + onClick: () => cleanExec(app) } as ResultWidgetProps) - ) || null; + ); } } as Runner.Plugin;