mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-04 07:32:01 +00:00
Moved temporary files into a folder of their own below the data directory (#1245)
This commit is contained in:
1 parent
ddfc632b63
commit
12d3e1ec6c
52 files changed
+1219
-396
No files matched your search
@@ -89,6 +89,13 @@ blocking handler can hold up the whole app. Therefore:
|
||||
- `runtime_api::test_support::assert_runtime_stays_free` tests a handler which waits for a lock. Run
|
||||
such a test with `#[tokio::test(flavor = "multi_thread", worker_threads = 1)]`.
|
||||
|
||||
**The runtime writes no temporary files of its own into the temporary folder of the system,** whose memory
|
||||
it would take on many Linux systems, and always in a Flatpak. The .NET app keeps its temporary files in `tmp/`
|
||||
below the data directory (`TemporaryFiles`) and hands the runtime the paths, e.g., for the output of a media
|
||||
job. Only tests use the temporary folder of the system, and the start log as its last resort when no other
|
||||
folder is writable (`log.rs`). `TEMPORARY_DIRECTORY_NAME` in
|
||||
`share_sheet.rs` names that folder, since the runtime shares only plugin archives from it.
|
||||
|
||||
**AI Studio restarts itself only through `own_restart.rs`.** Since Tauri 2.12.6, a restart on macOS starts
|
||||
the new instance in the background, so that it takes no focus away from the app the user works in. AI
|
||||
Studio restarts itself only on behalf of the user, after an update or the restore of a backup, and the
|
||||
|
||||
Reference in new issue
Block a user