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