Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(recording): keep earlier takes reachable after a folder change
EtienneLescotd029d69528a2
diff --git a/electron/cli/cliMain.ts b/electron/cli/cliMain.tsindex a1860cafb..d64b27e5d 100644--- a/electron/cli/cliMain.ts+++ b/electron/cli/cliMain.ts@@ -330,8 +330,9 @@ export function runCli(command: CliCommand): void {milestone("resolving userData path");const userDataDir = app.getPath("userData");milestone(`userData = ${userDataDir}`);- await fs.mkdir(path.join(userDataDir, "recordings"), { recursive: true });- milestone("recordings directory ready");+ // No recordings folder made here: it may be one the user chose, on a drive that is+ // gone, and `export` has no use for it. A record run makes it in the storage check+ // every take goes through, which reports such a folder instead of crashing the run.// Media/screen permissions for the renderer (mic metering, future browser// capture paths). Mirrors the GUI allowlist.diff --git a/electron/electron-env.d.ts b/electron/electron-env.d.tsindex bbb5a70d6..ff6c139e0 100644--- a/electron/electron-env.d.ts+++ b/electron/electron-env.d.ts@@ -457,7 +457,8 @@ interface Window {revealInFolder: (filePath: string,) => Promise<{ success: boolean; error?: string; message?: string }>;- /** Whether a take can start: refused, with the message to show, when the disk is nearly full. */+ /** Whether a take can start: refused, with the message to show, when the recordings folder+ * cannot be reached or its disk is nearly full. */checkRecordingStorage: () => Promise<{ success: true } | { success: false; error: string }>;getRecordingsDir: () => Promise<{ path: string; isDefault: boolean }>;/** Opens the native folder picker; the main process never takes a path from the renderer. */diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.tsindex cec8b1b7c..f9a9a4c48 100644--- a/electron/ipc/handlers.ts+++ b/electron/ipc/handlers.ts@@ -70,7 +70,12 @@ import { AppSettingsStore } from "../app-settings";import { isDiagnosticModeEnabled, mainLogBuffer } from "../diagnostics/main-log-buffer";import { mainT } from "../i18n";import { getInstallChannel } from "../install-channel";-import { getRecordingsDirInfo, RECORDINGS_DIR, setRecordingsDir } from "../main";+import {+ DEFAULT_RECORDINGS_DIR,+ getRecordingsDirInfo,+ RECORDINGS_DIR,+ setRecordingsDir,+} from "../main";import { EditorDocumentHost } from "../mcp/editor-document-host";import { McpController } from "../mcp/mcp-controller";import { McpSettingsStore } from "../mcp/mcp-settings-store";@@ -106,7 +111,7 @@ import {import { CompositorViewService } from "../native-bridge/services/compositorViewService";import { getMacPermissions, showPermissionsWindow } from "../permissions";import { scoreDeviceNameMatch } from "../recording/deviceNameMatching";-import { checkDiskSpace } from "../recording/diskSpaceCheck";+import { recordingStorageProblem } from "../recording/diskSpaceCheck";import {describeSalvagedTake,nativeMacSalvageTarget,@@ -203,8 +208,13 @@ function approveFilePath(filePath: string): void {approvedPaths.add(path.resolve(filePath));}+// The default folder stays readable after the user picks another one: every take made+// before the change, and the projects that use them, are still there.+// ponytail: a custom folder left for another custom folder is not remembered. The editor's+// own projects still open (they grant what they declare); a v2 project file outside it+// does not. Keep a list of past folders if that ever matters.function getAllowedReadDirs(): string[] {- return [RECORDINGS_DIR];+ return [RECORDINGS_DIR, DEFAULT_RECORDINGS_DIR];}function isPathWithinDir(filePath: string, dirPath: string): boolean {@@ -556,9 +566,9 @@ async function getApprovedProjectSession(return null;}- // Only auto-approve media within the project's dir or RECORDINGS_DIR, so a crafted+ // Only auto-approve media within the project's dir or the recordings folders, so a crafted// project file can't approve reads to arbitrary locations.- const trustedDirs = [RECORDINGS_DIR];+ const trustedDirs = getAllowedReadDirs();if (projectFilePath) {trustedDirs.push(path.dirname(path.resolve(projectFilePath)));}@@ -990,7 +1000,11 @@ function linuxSourceLabel(kind?: LinuxCaptureSourceKind): string {// threw `Cannot access 'RECORDINGS_DIR' before initialization` and the app died// before its first window. Every call site is already inside a handler, i.e.// long after both modules finished loading.-const cursorSidecarOptions = () => ({ recordingsDir: RECORDINGS_DIR });+//+// The media-links registry stays in the DEFAULT folder whichever folder takes are written+// to, here and at every other registry call: the links registered before the user picked+// another folder must still be found after it.+const cursorSidecarOptions = () => ({ recordingsDir: DEFAULT_RECORDINGS_DIR });const readCursorRecordingFile = (targetVideoPath: string) =>readCursorRecordingFileFrom(targetVideoPath, cursorSidecarOptions());@@ -1354,7 +1368,7 @@ async function registerRecordingMediaLinks(.access(cursorTelemetryPath, fsConstants.F_OK).then(() => true).catch(() => false);- await registerMediaLinks(RECORDINGS_DIR, screenVideoPath, {+ await registerMediaLinks(DEFAULT_RECORDINGS_DIR, screenVideoPath, {...(options.webcamVideoPath ? { webcamVideoPath: options.webcamVideoPath } : {}),...(options.webcamVideoPath && Number.isFinite(options.webcamOffsetMs)? { webcamOffsetMs: options.webcamOffsetMs }@@ -1840,7 +1854,7 @@ async function resolveMediaLinksForVideo(videoPath: string): Promise<{if (session?.webcamVideoPath || hasCursorTelemetry) {// Opportunistic backfill so the link survives a later move even if this// recording predates the registry, or if its sidecar doesn't travel with it.- await registerMediaLinks(RECORDINGS_DIR, videoPath, {+ await registerMediaLinks(DEFAULT_RECORDINGS_DIR, videoPath, {...(session?.webcamVideoPath ? { webcamVideoPath: session.webcamVideoPath } : {}),...(session?.webcamVideoPath && Number.isFinite(session.webcamOffsetMs)? { webcamOffsetMs: session.webcamOffsetMs }@@ -1861,12 +1875,12 @@ async function resolveMediaLinksForVideo(videoPath: string): Promise<{}try {- const links = await findMediaLinksByFingerprint(RECORDINGS_DIR, videoPath);+ const links = await findMediaLinksByFingerprint(DEFAULT_RECORDINGS_DIR, videoPath);if (links?.webcamVideoPath || links?.cursorTelemetryPath) {let webcamVideoPath = links.webcamVideoPath;if (webcamVideoPath && !isPathAllowed(webcamVideoPath)) {webcamVideoPath =- (await approveReadableVideoPath(webcamVideoPath, [RECORDINGS_DIR])) ?? undefined;+ (await approveReadableVideoPath(webcamVideoPath, getAllowedReadDirs())) ?? undefined;}return {...(webcamVideoPath ? { webcamVideoPath, webcamOffsetMs: links.webcamOffsetMs ?? 0 } : {}),@@ -2287,9 +2301,15 @@ export function registerIpcHandlers(// Asked before every take starts. A disk that fills up mid-take used to be found only// when the take was saved, and the take was lost with it.ipcMain.handle("check-recording-storage", async () => {- const status = await checkDiskSpace(RECORDINGS_DIR);- if (!status.low) return { success: true };- const availableMb = Math.max(0, Math.floor(status.availableBytes / (1024 * 1024)));+ const problem = await recordingStorageProblem(RECORDINGS_DIR);+ if (!problem) return { success: true };+ if (problem.kind === "unavailable") {+ return {+ success: false,+ error: mainT("dialogs", "recording.folderUnavailable", { path: RECORDINGS_DIR }),+ };+ }+ const availableMb = Math.max(0, Math.floor(problem.availableBytes / (1024 * 1024)));return {success: false,error: mainT("dialogs", "recording.lowDiskSpace", { availableMb }),@@ -4645,7 +4665,7 @@ export function registerIpcHandlers(const filePath = result.filePaths[0];const content = await fs.readFile(filePath, "utf-8");- const project = await relinkProjectMedia(JSON.parse(content), RECORDINGS_DIR);+ const project = await relinkProjectMedia(JSON.parse(content), DEFAULT_RECORDINGS_DIR);currentProjectPath = filePath;let session: RecordingSession | null = null;try {@@ -4691,7 +4711,7 @@ export function registerIpcHandlers(return { success: false, message: "File not found" };}const content = await fs.readFile(filePath, "utf-8");- const project = await relinkProjectMedia(JSON.parse(content), RECORDINGS_DIR);+ const project = await relinkProjectMedia(JSON.parse(content), DEFAULT_RECORDINGS_DIR);currentProjectPath = filePath;// A document the editor saved grants the media it declares, within the same trusted// dirs as a legacy v2 project below: the recordings dir and the project's own dir.@@ -4699,7 +4719,7 @@ export function registerIpcHandlers(if (isAxcutDocumentFile(project)) {try {approveDocumentMedia(parseDocumentFile(project), [- RECORDINGS_DIR,+ ...getAllowedReadDirs(),path.dirname(path.resolve(filePath)),]);} catch {@@ -4911,7 +4931,7 @@ export function registerIpcHandlers(configureChatPersistence(chatProjectsRoot);const aiEditionDocuments = new DocumentService(chatProjectsRoot,- RECORDINGS_DIR,+ DEFAULT_RECORDINGS_DIR,approveDocumentMedia,() => stylePresets.newProjectAppearance(),);diff --git a/electron/recording/diskSpaceCheck.test.ts b/electron/recording/diskSpaceCheck.test.tsindex 55970b60b..c7ac7c48f 100644--- a/electron/recording/diskSpaceCheck.test.ts+++ b/electron/recording/diskSpaceCheck.test.ts@@ -1,8 +1,8 @@-import { mkdtemp, rm } from "node:fs/promises";+import { mkdtemp, rm, stat, writeFile } from "node:fs/promises";import { tmpdir } from "node:os";import path from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { checkDiskSpace } from "./diskSpaceCheck";+import { checkDiskSpace, recordingStorageProblem } from "./diskSpaceCheck";describe("checkDiskSpace", () => {let dir: string;@@ -31,3 +31,29 @@ describe("checkDiskSpace", () => {expect(status.low).toBe(false);});});++describe("recordingStorageProblem", () => {+ let dir: string;++ beforeEach(async () => {+ dir = await mkdtemp(path.join(tmpdir(), "openscreen-recording-storage-"));+ });++ afterEach(async () => {+ await rm(dir, { recursive: true, force: true });+ });++ it("makes a deleted folder again and lets the take start", async () => {+ const folder = path.join(dir, "deleted", "recordings");+ expect(await recordingStorageProblem(folder)).toBeNull();+ expect((await stat(folder)).isDirectory()).toBe(true);+ });++ it("reports a folder that cannot be created", async () => {+ const file = path.join(dir, "not-a-folder");+ await writeFile(file, "");+ expect(await recordingStorageProblem(path.join(file, "recordings"))).toEqual({+ kind: "unavailable",+ });+ });+});diff --git a/electron/recording/diskSpaceCheck.ts b/electron/recording/diskSpaceCheck.tsindex c94b07597..6dab471f1 100644--- a/electron/recording/diskSpaceCheck.ts+++ b/electron/recording/diskSpaceCheck.ts@@ -32,3 +32,20 @@ export async function checkDiskSpace(return { availableBytes: Number.POSITIVE_INFINITY, low: false };}}++/**+ * Why a take cannot be written to `dir`, or null when it can. The folder is created first, so+ * a deleted one is simply made again; one that cannot be (a drive unplugged, a share gone) is+ * reported here instead of failing the capture with a raw error once it opens its file.+ */+export async function recordingStorageProblem(+ dir: string,+): Promise<{ kind: "unavailable" } | { kind: "low"; availableBytes: number } | null> {+ try {+ await fs.mkdir(dir, { recursive: true });+ } catch {+ return { kind: "unavailable" };+ }+ const status = await checkDiskSpace(dir);+ return status.low ? { kind: "low", availableBytes: status.availableBytes } : null;+}diff --git a/src/i18n/locales/ar/dialogs.json b/src/i18n/locales/ar/dialogs.jsonindex e65a06b09..27c55f96d 100644--- a/src/i18n/locales/ar/dialogs.json+++ b/src/i18n/locales/ar/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "اختر مجلد التسجيلات"},"recording": {- "lowDiskSpace": "لا توجد مساحة تخزين كافية لبدء التسجيل (لا يتوفر سوى {{availableMb}} ميجابايت). حرر بعض المساحة أو اختر مجلد تسجيلات آخر، ثم حاول مرة أخرى."+ "lowDiskSpace": "لا توجد مساحة تخزين كافية لبدء التسجيل (لا يتوفر سوى {{availableMb}} ميجابايت). حرر بعض المساحة أو اختر مجلد تسجيلات آخر، ثم حاول مرة أخرى.",+ "folderUnavailable": "تعذّر الوصول إلى مجلد التسجيلات {{path}}. أعد توصيل محرّك الأقراص الخاص به، أو اختر مجلدًا آخر في وضع «تسجيل»."}}diff --git a/src/i18n/locales/cs/dialogs.json b/src/i18n/locales/cs/dialogs.jsonindex 1f38c4897..9d465f08e 100644--- a/src/i18n/locales/cs/dialogs.json+++ b/src/i18n/locales/cs/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "Vybrat složku pro nahrávky"},"recording": {- "lowDiskSpace": "Nedostatek místa na disku pro zahájení nahrávání (volno pouze {{availableMb}} MB). Uvolněte místo nebo vyberte jinou složku pro nahrávky a zkuste to znovu."+ "lowDiskSpace": "Nedostatek místa na disku pro zahájení nahrávání (volno pouze {{availableMb}} MB). Uvolněte místo nebo vyberte jinou složku pro nahrávky a zkuste to znovu.",+ "folderUnavailable": "Složka pro nahrávky {{path}} není dostupná. Znovu připojte její disk, nebo zvolte jinou složku v režimu Nahrávání."}}diff --git a/src/i18n/locales/de/dialogs.json b/src/i18n/locales/de/dialogs.jsonindex 7ad5f6d77..6f2a9b266 100644--- a/src/i18n/locales/de/dialogs.json+++ b/src/i18n/locales/de/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "Ordner für Aufnahmen auswählen"},"recording": {- "lowDiskSpace": "Nicht genügend Speicherplatz, um die Aufnahme zu starten (nur {{availableMb}} MB frei). Gib Speicherplatz frei oder wähle einen anderen Ordner für Aufnahmen und versuche es erneut."+ "lowDiskSpace": "Nicht genügend Speicherplatz, um die Aufnahme zu starten (nur {{availableMb}} MB frei). Gib Speicherplatz frei oder wähle einen anderen Ordner für Aufnahmen und versuche es erneut.",+ "folderUnavailable": "Der Ordner für Aufnahmen {{path}} ist nicht erreichbar. Schließe sein Laufwerk wieder an oder wähle im Modus „Aufnahme“ einen anderen Ordner."}}diff --git a/src/i18n/locales/en/dialogs.json b/src/i18n/locales/en/dialogs.jsonindex 1f8e994c0..d5db79b72 100644--- a/src/i18n/locales/en/dialogs.json+++ b/src/i18n/locales/en/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "Choose a recordings folder"},"recording": {- "lowDiskSpace": "Not enough disk space to start recording (only {{availableMb}} MB free). Free up space or choose a different recordings folder, then try again."+ "lowDiskSpace": "Not enough disk space to start recording (only {{availableMb}} MB free). Free up space or choose a different recordings folder, then try again.",+ "folderUnavailable": "Can't reach the recordings folder {{path}}. Reconnect its drive, or choose another folder in Record mode."}}diff --git a/src/i18n/locales/es/dialogs.json b/src/i18n/locales/es/dialogs.jsonindex 0c0621c94..cbb162b61 100644--- a/src/i18n/locales/es/dialogs.json+++ b/src/i18n/locales/es/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "Seleccionar carpeta de grabaciones"},"recording": {- "lowDiskSpace": "No hay suficiente espacio en disco para iniciar la grabación (solo quedan {{availableMb}} MB libres). Libera espacio o elige otra carpeta de grabaciones e inténtalo de nuevo."+ "lowDiskSpace": "No hay suficiente espacio en disco para iniciar la grabación (solo quedan {{availableMb}} MB libres). Libera espacio o elige otra carpeta de grabaciones e inténtalo de nuevo.",+ "folderUnavailable": "No se puede acceder a la carpeta de grabaciones {{path}}. Vuelve a conectar su unidad o elige otra carpeta en el modo Grabar."}}diff --git a/src/i18n/locales/fr/dialogs.json b/src/i18n/locales/fr/dialogs.jsonindex 22550fc72..e5efd3fc3 100644--- a/src/i18n/locales/fr/dialogs.json+++ b/src/i18n/locales/fr/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "Sélectionner le dossier des enregistrements"},"recording": {- "lowDiskSpace": "Espace disque insuffisant pour démarrer l'enregistrement (seulement {{availableMb}} Mo disponibles). Libérez de l'espace ou choisissez un autre dossier d'enregistrements, puis réessayez."+ "lowDiskSpace": "Espace disque insuffisant pour démarrer l'enregistrement (seulement {{availableMb}} Mo disponibles). Libérez de l'espace ou choisissez un autre dossier d'enregistrements, puis réessayez.",+ "folderUnavailable": "Le dossier des enregistrements {{path}} est inaccessible. Rebranchez son disque, ou choisissez un autre dossier dans le mode Enregistrement."}}diff --git a/src/i18n/locales/it/dialogs.json b/src/i18n/locales/it/dialogs.jsonindex e345dc61b..5d8ac7de0 100644--- a/src/i18n/locales/it/dialogs.json+++ b/src/i18n/locales/it/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "Seleziona cartella registrazioni"},"recording": {- "lowDiskSpace": "Spazio su disco insufficiente per avviare la registrazione (solo {{availableMb}} MB disponibili). Libera spazio o scegli un'altra cartella per le registrazioni, quindi riprova."+ "lowDiskSpace": "Spazio su disco insufficiente per avviare la registrazione (solo {{availableMb}} MB disponibili). Libera spazio o scegli un'altra cartella per le registrazioni, quindi riprova.",+ "folderUnavailable": "Impossibile raggiungere la cartella registrazioni {{path}}. Ricollega la sua unità o scegli un'altra cartella in modalità Registra."}}diff --git a/src/i18n/locales/ja-JP/dialogs.json b/src/i18n/locales/ja-JP/dialogs.jsonindex d81237246..54a1ecb17 100644--- a/src/i18n/locales/ja-JP/dialogs.json+++ b/src/i18n/locales/ja-JP/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "録画フォルダーを選択"},"recording": {- "lowDiskSpace": "録画を開始するのに十分なディスク容量がありません(空き容量は{{availableMb}} MBのみ)。空き容量を確保するか、別の録画フォルダーを選択してから、もう一度お試しください。"+ "lowDiskSpace": "録画を開始するのに十分なディスク容量がありません(空き容量は{{availableMb}} MBのみ)。空き容量を確保するか、別の録画フォルダーを選択してから、もう一度お試しください。",+ "folderUnavailable": "録画フォルダー {{path}} にアクセスできません。ドライブを接続し直すか、録画モードで別のフォルダーを選択してください。"}}diff --git a/src/i18n/locales/ko-KR/dialogs.json b/src/i18n/locales/ko-KR/dialogs.jsonindex 4324f1c63..e12bc12ed 100644--- a/src/i18n/locales/ko-KR/dialogs.json+++ b/src/i18n/locales/ko-KR/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "녹화 폴더 선택"},"recording": {- "lowDiskSpace": "녹화를 시작할 디스크 공간이 부족합니다(사용 가능한 공간 {{availableMb}}MB). 공간을 확보하거나 다른 녹화 폴더를 선택한 후 다시 시도하세요."+ "lowDiskSpace": "녹화를 시작할 디스크 공간이 부족합니다(사용 가능한 공간 {{availableMb}}MB). 공간을 확보하거나 다른 녹화 폴더를 선택한 후 다시 시도하세요.",+ "folderUnavailable": "녹화 폴더 {{path}}에 접근할 수 없습니다. 드라이브를 다시 연결하거나 녹화 모드에서 다른 폴더를 선택하세요."}}diff --git a/src/i18n/locales/pt-BR/dialogs.json b/src/i18n/locales/pt-BR/dialogs.jsonindex 33c744eb1..d2b05aaf2 100644--- a/src/i18n/locales/pt-BR/dialogs.json+++ b/src/i18n/locales/pt-BR/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "Selecionar pasta de gravações"},"recording": {- "lowDiskSpace": "Espaço em disco insuficiente para iniciar a gravação (apenas {{availableMb}} MB livres). Libere espaço ou escolha outra pasta de gravações e tente novamente."+ "lowDiskSpace": "Espaço em disco insuficiente para iniciar a gravação (apenas {{availableMb}} MB livres). Libere espaço ou escolha outra pasta de gravações e tente novamente.",+ "folderUnavailable": "Não é possível acessar a pasta de gravações {{path}}. Reconecte a unidade dela ou escolha outra pasta no modo Gravar."}}diff --git a/src/i18n/locales/ru/dialogs.json b/src/i18n/locales/ru/dialogs.jsonindex c25a4e035..067d7fba7 100644--- a/src/i18n/locales/ru/dialogs.json+++ b/src/i18n/locales/ru/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "Выбрать папку для записей"},"recording": {- "lowDiskSpace": "Недостаточно места на диске для начала записи (доступно только {{availableMb}} МБ). Освободите место или выберите другую папку для записей и повторите попытку."+ "lowDiskSpace": "Недостаточно места на диске для начала записи (доступно только {{availableMb}} МБ). Освободите место или выберите другую папку для записей и повторите попытку.",+ "folderUnavailable": "Папка для записей {{path}} недоступна. Подключите её диск снова или выберите другую папку в режиме «Запись»."}}diff --git a/src/i18n/locales/tr/dialogs.json b/src/i18n/locales/tr/dialogs.jsonindex 5dcdb4705..610433781 100644--- a/src/i18n/locales/tr/dialogs.json+++ b/src/i18n/locales/tr/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "Kayıt klasörünü seç"},"recording": {- "lowDiskSpace": "Kaydı başlatmak için yeterli disk alanı yok (yalnızca {{availableMb}} MB boş). Alan boşaltın veya farklı bir kayıt klasörü seçip tekrar deneyin."+ "lowDiskSpace": "Kaydı başlatmak için yeterli disk alanı yok (yalnızca {{availableMb}} MB boş). Alan boşaltın veya farklı bir kayıt klasörü seçip tekrar deneyin.",+ "folderUnavailable": "{{path}} kayıt klasörüne erişilemiyor. Sürücüsünü yeniden bağlayın veya Kayıt modunda başka bir klasör seçin."}}diff --git a/src/i18n/locales/vi/dialogs.json b/src/i18n/locales/vi/dialogs.jsonindex e6c130389..f3ad24330 100644--- a/src/i18n/locales/vi/dialogs.json+++ b/src/i18n/locales/vi/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "Chọn thư mục bản ghi"},"recording": {- "lowDiskSpace": "Không đủ dung lượng ổ đĩa để bắt đầu quay (chỉ còn {{availableMb}} MB trống). Hãy giải phóng dung lượng hoặc chọn thư mục bản ghi khác rồi thử lại."+ "lowDiskSpace": "Không đủ dung lượng ổ đĩa để bắt đầu quay (chỉ còn {{availableMb}} MB trống). Hãy giải phóng dung lượng hoặc chọn thư mục bản ghi khác rồi thử lại.",+ "folderUnavailable": "Không thể truy cập thư mục bản ghi {{path}}. Hãy kết nối lại ổ đĩa của thư mục, hoặc chọn thư mục khác trong chế độ Ghi hình."}}diff --git a/src/i18n/locales/zh-CN/dialogs.json b/src/i18n/locales/zh-CN/dialogs.jsonindex 1683c5776..bc9721e49 100644--- a/src/i18n/locales/zh-CN/dialogs.json+++ b/src/i18n/locales/zh-CN/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "选择录制文件夹"},"recording": {- "lowDiskSpace": "磁盘空间不足,无法开始录制(仅剩 {{availableMb}} MB 可用空间)。请释放空间或选择其他录制文件夹,然后重试。"+ "lowDiskSpace": "磁盘空间不足,无法开始录制(仅剩 {{availableMb}} MB 可用空间)。请释放空间或选择其他录制文件夹,然后重试。",+ "folderUnavailable": "无法访问录制文件夹 {{path}}。请重新连接其所在的驱动器,或在“录制”模式中选择其他文件夹。"}}diff --git a/src/i18n/locales/zh-TW/dialogs.json b/src/i18n/locales/zh-TW/dialogs.jsonindex 8ee82a4cd..04c3d90d1 100644--- a/src/i18n/locales/zh-TW/dialogs.json+++ b/src/i18n/locales/zh-TW/dialogs.json@@ -91,6 +91,7 @@"selectRecordingsFolder": "選擇錄製資料夾"},"recording": {- "lowDiskSpace": "磁碟空間不足,無法開始錄製(僅剩 {{availableMb}} MB 可用空間)。請釋放空間或選擇其他錄製資料夾,然後再試一次。"+ "lowDiskSpace": "磁碟空間不足,無法開始錄製(僅剩 {{availableMb}} MB 可用空間)。請釋放空間或選擇其他錄製資料夾,然後再試一次。",+ "folderUnavailable": "無法存取錄製資料夾 {{path}}。請重新連接其所在的磁碟機,或在「錄製」模式中選擇其他資料夾。"}}