[AGS] Sysinfo: Launch terminal asynchronously
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user