From 8bd1c23ce040147342008534d56e4ab442091151 Mon Sep 17 00:00:00 2001
From: matt1432 <matt@nelim.org>
Date: Tue, 28 Nov 2023 08:23:32 -0500
Subject: [PATCH] fix(ags applauncher): make on_accept work

---
 devices/wim/config/ags/js/applauncher/main.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/devices/wim/config/ags/js/applauncher/main.js b/devices/wim/config/ags/js/applauncher/main.js
index 1cb2ac5d..2f1729ec 100644
--- a/devices/wim/config/ags/js/applauncher/main.js
+++ b/devices/wim/config/ags/js/applauncher/main.js
@@ -46,7 +46,8 @@ const Applauncher = ({ window_name = 'applauncher' } = {}) => {
 
             if (appList[0]) {
                 App.toggleWindow(window_name);
-                Hyprland.sendMessage(`dispatch exec sh -c ${appList[0]}`);
+                Hyprland.sendMessage(`dispatch exec sh -c
+                    ${appList[0].executable}`);
                 ++appList[0].frequency;
             }
         },