fix(ags launcher): make launch work properly
This commit is contained in:
parent
6065c13c18
commit
f7ced94c21
1 changed files with 2 additions and 5 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue