diff --git a/devices/wim/config/ags/js/applauncher/main.js b/devices/wim/config/ags/js/applauncher/main.js index 3c33b61b..d2b71d8c 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; }]],