💥 fix: incorrect usage of uwsm check is-active command on scripts
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
import { monitorFile, Process } from "astal";
|
||||
import { execAsync, Gio, monitorFile } from "astal";
|
||||
import { App } from "astal/gtk3";
|
||||
import { uwsmIsActive } from "./apps";
|
||||
|
||||
const monitoringPaths = [ "./scripts", "./window", "./app.ts", "env.d.ts" ];
|
||||
|
||||
export function restartInstance(instanceName?: string): void {
|
||||
Process.exec_async(`astal -q ${ instanceName || App.instanceName || "astal" }`, () => {});
|
||||
Process.exec_async(`ags run`, () => {});
|
||||
execAsync(`astal -q ${ instanceName ?? App.instanceName ?? "astal" }`);
|
||||
Gio.Subprocess.new(
|
||||
( uwsmIsActive ?
|
||||
[ "uwsm", "app", "--", "ags", "run" ]
|
||||
: [ "ags", "run" ]),
|
||||
Gio.SubprocessFlags.STDOUT_PIPE | Gio.SubprocessFlags.STDERR_PIPE
|
||||
);
|
||||
}
|
||||
|
||||
export function monitorPaths(): void {
|
||||
|
||||
Reference in New Issue
Block a user