💥 ags(runner/apps): fix app icon issues
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import AstalHyprland from "gi://AstalHyprland";
|
|
||||||
import { ResultWidget, ResultWidgetProps } from "../../widget/runner/ResultWidget";
|
import { ResultWidget, ResultWidgetProps } from "../../widget/runner/ResultWidget";
|
||||||
import AstalApps from "gi://AstalApps";
|
import AstalApps from "gi://AstalApps";
|
||||||
import { getAstalApps } from "../../scripts/apps";
|
import { cleanExec, getAstalApps } from "../../scripts/apps";
|
||||||
import { Runner } from "../Runner";
|
import { Runner } from "../Runner";
|
||||||
|
import { Astal } from "astal/gtk3";
|
||||||
|
|
||||||
export const PluginApps = {
|
export const PluginApps = {
|
||||||
// Do not provide prefix, so it's always ran.
|
// Do not provide prefix, so it's always ran.
|
||||||
@@ -12,9 +12,9 @@ export const PluginApps = {
|
|||||||
new ResultWidget({
|
new ResultWidget({
|
||||||
title: app.get_name(),
|
title: app.get_name(),
|
||||||
description: app.get_description(),
|
description: app.get_description(),
|
||||||
icon: app.iconName,
|
icon: Astal.Icon.lookup_icon(app.iconName) ? app.iconName : "application-x-executable-symbolic",
|
||||||
onClick: () => AstalHyprland.get_default().dispatch("exec", app.get_executable())
|
onClick: () => cleanExec(app)
|
||||||
} as ResultWidgetProps)
|
} as ResultWidgetProps)
|
||||||
) || null;
|
);
|
||||||
}
|
}
|
||||||
} as Runner.Plugin;
|
} as Runner.Plugin;
|
||||||
|
|||||||
Reference in New Issue
Block a user