[AGS] Sysinfo: Launch terminal asynchronously

This commit is contained in:
Admin 2025-04-27 10:50:05 +02:00
parent 710eeb7fb4
commit 30a2b2a0ad

View File

@ -1,4 +1,4 @@
import { exec } from "astal"; import { execAsync } from "astal";
import { Gtk } from "astal/gtk4"; import { Gtk } from "astal/gtk4";
import sysinfo from "../sysinfo"; import sysinfo from "../sysinfo";
@ -27,7 +27,7 @@ Kernel: ${stats.kernel}`;
></label> ></label>
<Gtk.Separator marginTop={10}></Gtk.Separator> <Gtk.Separator marginTop={10}></Gtk.Separator>
<button <button
onClicked={() => exec(`/bin/sh -c "kitty --hold fish -c 'fastfetch'"`)} onClicked={() => execAsync(`/bin/sh -c "kitty --hold fish -c 'fastfetch'"`)}
child={ child={
<label label={"View FastFetch"}></label> <label label={"View FastFetch"}></label>
}></button> }></button>