Comments (1)
After applying a suggested fix in #10330, Tauri managed to create the config directory in $HOME/.config/org.tauri.dev
.
What I did was add the following code in /src-tauri/capabilities/default.json
:
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"path:default",
"event:default",
"window:default",
"app:default",
"fs:allow-app-meta-recursive",
"image:default",
"resources:default",
"menu:default",
"tray:default",
"fs:allow-read-text-file",
"fs:allow-appconfig-write",
"fs:allow-app-write-recursive",
"fs:write-all",
"fs:scope-resource-recursive",
"fs:allow-appconfig-read-recursive",
"fs:allow-appconfig-write-recursive",
"fs:allow-appdata-read-recursive",
"fs:allow-appdata-write-recursive",
"shell:allow-open",
**{
"identifier": "fs:scope-appdata-recursive",
"allow": [
{
"path": "$APPDATA"
}
]
},
{
"identifier": "fs:scope-appconfig-recursive",
"allow": [
{
"path": "$APPCONFIG"
}
]
}**
]
}
Still, copying a file or similar requires that the issue mentioned in #10293 is taken into consideration, until it is merged.
from tauri.
Related Issues (20)
- [bug] EXC_BAD_ACCESS crash in IOS runtime(iphone)
- [bug] missing `cargo:dev` instruction, please update tauri to latest: NotPresent HOT 1
- [bug] document.visibilityState broken HOT 2
- [bug] `tauri permission add` should handle mobile-only plugins
- [bug] maximized: true isn't working HOT 3
- [bug] Cannot bundle x86 on Mac M1 HOT 3
- [bug] Tauri Not Reloading Changes in Angular Project (Tauri 2 RC)
- [bug] Tauri-cli does not generate .sig files. HOT 2
- [bug] NixOS Windows build from Linux OpenSSL linking issue
- [bug] tauri v2 android generated `WryActivity.kt` has type mismatchs HOT 2
- [feat] Plugins should be able to self disclaim metadata
- 【紧急‼️】启动win7 出现报错, [bug] 丢失 api-ms-win-core-winrt-l1-1-0.dll 文件通常与 Windows 系统文件损坏或缺失有关 HOT 1
- [bug] Tauri 2.0.0-rc shows blank window after upgrading to webkit2gtk-4.1 2.44.3-2 HOT 2
- [bug] image shows laggy
- [bug] [windows] [Edge/WebView2] DevTools theme gets initialized incorrectly
- [bug] visualViewport API fails to account for mobile keyboard height HOT 1
- [bug] minSdkVersion 23 error
- [bug] [tauri v2][iOS] Error sending request for url (http://127.0.0.1:1430). Can't start app on iOS Simulator HOT 2
- [bug] pointerType always falls back to "mouse" using the pointerdown event. HOT 1
- [bug] [tauri v2][iOS] Xcode project directory is outdated because you have modified your "identifier" in the Tauri configuration. Please run `tauri ios init` and try again.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tauri.