This commit is contained in:
Caten
2024-11-13 00:08:49 +08:00
parent 2bb170a4e3
commit b067a90a17

View File

@@ -142,7 +142,7 @@ class Util {
return m[key]; return m[key];
} }
switch (key) { switch (key) {
case "name" : return (value){addCurrentProp(key, value); return value;}("GXDE OS"); case "name" : return (value){addCurrentProp(key, value); return value;}("Debian Bookworm");
case "boot" : return (value){addCurrentProp(key, value); return value;}(D.boot); case "boot" : return (value){addCurrentProp(key, value); return value;}(D.boot);
case "vnc" : return (value){addCurrentProp(key, value); return value;}("startnovnc &"); case "vnc" : return (value){addCurrentProp(key, value); return value;}("startnovnc &");
case "vncUrl" : return (value){addCurrentProp(key, value); return value;}("http://localhost:36082/vnc.html?host=localhost&port=36082&autoconnect=true&resize=remote&password=12345678"); case "vncUrl" : return (value){addCurrentProp(key, value); return value;}("http://localhost:36082/vnc.html?host=localhost&port=36082&autoconnect=true&resize=remote&password=12345678");
@@ -658,7 +658,7 @@ done
//$DATA_DIR是数据文件夹, $CONTAINER_DIR是容器根目录 //$DATA_DIR是数据文件夹, $CONTAINER_DIR是容器根目录
//Termux:X11的启动命令并不在这里面而是写死了。这下成💩山代码了:P //Termux:X11的启动命令并不在这里面而是写死了。这下成💩山代码了:P
await G.prefs.setStringList("containersInfo", ["""{ await G.prefs.setStringList("containersInfo", ["""{
"name":"Debian Bookworm", "name":"GXDE OS",
"boot":"${D.boot}", "boot":"${D.boot}",
"vnc":"startnovnc &", "vnc":"startnovnc &",
"vncUrl":"http://localhost:36082/vnc.html?host=localhost&port=36082&autoconnect=true&resize=remote&password=12345678", "vncUrl":"http://localhost:36082/vnc.html?host=localhost&port=36082&autoconnect=true&resize=remote&password=12345678",