[AGS] Sysinfo: Launch terminal asynchronously
This commit is contained in:
parent
710eeb7fb4
commit
30a2b2a0ad
@ -1,4 +1,4 @@
|
||||
import { exec } from "astal";
|
||||
import { execAsync } from "astal";
|
||||
import { Gtk } from "astal/gtk4";
|
||||
import sysinfo from "../sysinfo";
|
||||
|
||||
@ -27,7 +27,7 @@ Kernel: ${stats.kernel}`;
|
||||
></label>
|
||||
<Gtk.Separator marginTop={10}></Gtk.Separator>
|
||||
<button
|
||||
onClicked={() => exec(`/bin/sh -c "kitty --hold fish -c 'fastfetch'"`)}
|
||||
onClicked={() => execAsync(`/bin/sh -c "kitty --hold fish -c 'fastfetch'"`)}
|
||||
child={
|
||||
<label label={"View FastFetch"}></label>
|
||||
}></button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user