fix(ags launcher): make launch work properly

This commit is contained in:
matt1432 2023-12-20 14:28:56 -05:00
parent 6065c13c18
commit f7ced94c21

View file

@ -1,5 +1,4 @@
import App from 'resource:///com/github/Aylur/ags/app.js'; 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 { Box, Icon, Label } from 'resource:///com/github/Aylur/ags/widget.js';
import { lookUpIcon } from 'resource:///com/github/Aylur/ags/utils.js'; import { lookUpIcon } from 'resource:///com/github/Aylur/ags/utils.js';
@ -54,11 +53,9 @@ export default (app) => {
attribute: { app }, attribute: { app },
on_primary_click_release: (self) => { on_primary_click_release: () => {
App.closeWindow('applauncher'); App.closeWindow('applauncher');
Hyprland.sendMessage(`dispatch exec sh -c app.launch();
${self.attribute.app.executable}`);
++self.attribute.app.frequency;
}, },
child: Box({ child: Box({