Open danielphan2003 opened 6 days ago
There is currently no builtin utility for sending notifications yet, you can use libnotify in the meantime
what about opening apps? I tried exec but that closes the apps if ags is closed.
exec
runs a subprocess which will be closed when the parent process (ags) is closed.
You should use the Apps library and the launch method
If your app does not have a .desktop file you should launch it through your compositor so that it won't be a child process of ags but your compositor. For example on Hyprland execAsync('hyprctl dispatch exec your-command')
Thanks,
const results = apps.fuzzy_query(request)
execAsync(['hyprctl', 'dispatch', 'exec', results[0].executable])
worked. Now I'll just have to figure out how to make a nice widget for it.
execAsync(['hyprctl', 'dispatch', 'exec', results[0].executable])
This will not work if the executable has some special characters. Like I said, you should use .launch()
result.launch()
Similar to
Utils.notify