iface #16

Merged
zxq9 merged 7 commits from iface into master 2025-11-20 16:02:09 +09:00
Showing only changes of commit 4b6a4372d9 - Show all commits

View File

@ -375,9 +375,19 @@ win_mem() ->
do_gajudesk() ->
ok = log(info, "Running gajudesk"),
Command = "zx run gajudesk",
GajuDesk = "zx run gajudesk",
Command =
case os:type() of
{unix, _} ->
"setsid sh -c 'exec nohup " ++ GajuDesk ++ " >/dev/null 2>&1' &";
{win32, nt} ->
"wscript //B //Nologo "
"-e:VBScript "
"-c:\"CreateObject(\"WScript.Shell\").Run \"\""
" \"" ++ GajuDesk ++ "\", 0, False\""
end,
Out = os:cmd(Command),
log(info, "os:cmd(~w) -> ~w", [Command, Out]).
log(info, "os:cmd(~s) -> ~s", [Command, Out]).
run_gmc_conf(State = #s{gmc_conf = none, network = Net, acc = Acc, keys = Keys,