You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unsigned applications typically store application data under: ~/Library/Application Support/[App Name]
Signed (sandboxed) macOS applications have directories located under the ~/Library/Containers folder. E.g. ~/Library/Containers/[Bundle Identifier]/Data/[Subfolder]
iOS
Sandbox paths are managed by the system and vary for each app. Each app gets its unique directory under /var/mobile/Containers E.g. /var/mobile/Containers/Data/Application/[UUID]/[Subfolder]
The resolved path should exist without having to create it.
This is not how Tauri handled paths ever. It never creates paths it doesn't need itself.
Unsigned applications typically store application data under: ~/Library/Application Support/[App Name]
Our choice to use the id is indeed a bit weird, same on windows for example but it's not been a real issue either. (still wanna change it at some point ig)
Signed (sandboxed) macOS applications have directories located under the ~/Library/Containers folder. E.g. ~/Library/Containers/[Bundle Identifier]/Data/[Subfolder]
Our sandbox support is a bit lackluster but this may already work, at least i didn't hear about issues with it before. Did you test this as well?
Everything up to /Library/Application Support/com.company.appname comes from iOS directly. The rest comes from the dirs crate applying macOS logic on iOS (of course we could just do it ourselves). A bit ugly but still working afaik.
Describe the bug
appDataDir does not resolve to correct path on each platform. The resolved path should exist without having to create it.
See example below for macOS, iOS and Android.
macOS:
/Users/johndoe/Library/Application Support/com.company.appname
iOS:
/Users/johndoe/Library/Developer/CoreSimulator/Devices/6C6435C0-2956-46E4-B7EE-006D5C14770A/data/Containers/Data/Application/5537853B-26D5-4B30-B99E-373146D19848/Library/Application Support/com.company.appname
Android:
/data/user/0/com.company.appname
Reproduction
Use the appDataDir API from @tauri-apps/api.
Expected behavior
macOS
~/Library/Application Support/[App Name]
~/Library/Containers/[Bundle Identifier]/Data/[Subfolder]
iOS
/var/mobile/Containers/Data/Application/[UUID]/[Subfolder]
Full
tauri info
outputStack trace
No response
Additional context
#5263
The text was updated successfully, but these errors were encountered: