From ba571f697e7199c7479766f4c2bade68e9ca5cca Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 2 Nov 2023 16:49:38 -0400 Subject: [PATCH] fix(ags applauncher): only execute the actual executable --- devices/wim/config/ags/js/applauncher/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/wim/config/ags/js/applauncher/main.js b/devices/wim/config/ags/js/applauncher/main.js index 3c33b61..d2b71d8 100644 --- a/devices/wim/config/ags/js/applauncher/main.js +++ b/devices/wim/config/ags/js/applauncher/main.js @@ -2,7 +2,7 @@ import App from 'resource:///com/github/Aylur/ags/app.js'; import Applications from 'resource:///com/github/Aylur/ags/service/applications.js'; import { Label, Box, Icon, Button, Scrollable, Entry } from 'resource:///com/github/Aylur/ags/widget.js'; -import { exec } from 'resource:///com/github/Aylur/ags/utils.js'; +import { execAsync } from 'resource:///com/github/Aylur/ags/utils.js'; import Separator from '../misc/separator.js'; import PopupWindow from '../misc/popup.js'; @@ -23,7 +23,7 @@ const AppItem = (app, window) => { className: 'app', connections: [['clicked', () => { App.closeWindow(window); - exec(`hyprctl dispatch exec ${app.executable}`); + execAsync(['hyprctl', 'dispatch', 'exec', app.executable.split(' ')[0]]); // TODO: focus on new client. Is this only needed after launch? ++app.frequency; }]],