[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 { 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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user