From f7ced94c2178b6421547bc49b44578b52fe830bd Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 20 Dec 2023 14:28:56 -0500 Subject: [PATCH] fix(ags launcher): make launch work properly --- devices/wim/config/ags/js/applauncher/app-item.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/devices/wim/config/ags/js/applauncher/app-item.js b/devices/wim/config/ags/js/applauncher/app-item.js index cb4b80b..8fb8f37 100644 --- a/devices/wim/config/ags/js/applauncher/app-item.js +++ b/devices/wim/config/ags/js/applauncher/app-item.js @@ -1,5 +1,4 @@ import App from 'resource:///com/github/Aylur/ags/app.js'; -import Hyprland from 'resource:///com/github/Aylur/ags/service/hyprland.js'; import { Box, Icon, Label } from 'resource:///com/github/Aylur/ags/widget.js'; import { lookUpIcon } from 'resource:///com/github/Aylur/ags/utils.js'; @@ -54,11 +53,9 @@ export default (app) => { attribute: { app }, - on_primary_click_release: (self) => { + on_primary_click_release: () => { App.closeWindow('applauncher'); - Hyprland.sendMessage(`dispatch exec sh -c - ${self.attribute.app.executable}`); - ++self.attribute.app.frequency; + app.launch(); }, child: Box({