diff --git a/gui/src-tauri/capabilities/main.json b/gui/src-tauri/capabilities/main.json index f0e8c05e..7e027a34 100644 --- a/gui/src-tauri/capabilities/main.json +++ b/gui/src-tauri/capabilities/main.json @@ -290,6 +290,8 @@ { "identifier": "fs:scope", "allow": [ + { "path": "$DOCUMENT" }, + { "path": "$DOCUMENT/**" }, { "path": "$APPDATA" }, { "path": "$APPDATA/**" }, { "path": "$HOME" }, diff --git a/gui/src-tauri/capabilities/windows.json b/gui/src-tauri/capabilities/windows.json index 5861c00b..7581367d 100644 --- a/gui/src-tauri/capabilities/windows.json +++ b/gui/src-tauri/capabilities/windows.json @@ -291,6 +291,8 @@ { "identifier": "fs:scope", "allow": [ + { "path": "$DOCUMENT" }, + { "path": "$DOCUMENT/**" }, { "path": "$APPDATA" }, { "path": "$APPDATA/**" }, { "path": "$HOME" }, diff --git a/gui/src/layout/AppRoot.vue b/gui/src/layout/AppRoot.vue index e8009bae..913a8202 100644 --- a/gui/src/layout/AppRoot.vue +++ b/gui/src/layout/AppRoot.vue @@ -276,7 +276,7 @@ const toggleLeft = () => { onMounted(() => { pipyInit(); timmer(); - writeMobileFile('Readme.txt', `Welcome ZTM!`); + writeMobileFile('Readme.txt', `Welcome ZTM workspace!`); }); diff --git a/gui/src/utils/file.js b/gui/src/utils/file.js index 6319d0ac..150a89e8 100644 --- a/gui/src/utils/file.js +++ b/gui/src/utils/file.js @@ -59,10 +59,10 @@ const getSavePath = (target, dft) => { return decodeURI(target); } } -const androidRoot = "/storage/emulated/0/com.flomesh.ztm" +// const androidRoot = "/storage/emulated/0/com.flomesh.ztm" const createFile = (name) => { if(platform() == 'android'){ - //Android forbidden path + //fix Android forbidden path return create(name, { write:true, create:true,