Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(desktop): open output file directly for instant mode recordings
Richie McIlroy4451d07fbd2e
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsxindex aa662ec9a..27e6d9e79 100644--- a/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx+++ b/apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx@@ -272,7 +272,11 @@ export default function TargetCard(props: TargetCardProps) {e.stopPropagation();const recording = recordingTarget();if (!recording) return;- commands.openFilePath(recording.path);+ const path =+ recording.mode === "instant"+ ? `${recording.path}/content/output.mp4`+ : recording.path;+ commands.openFilePath(path);};const handleDeleteRecording = async (e: MouseEvent) => {diff --git a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsxindex f1813799c..2560a82e1 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx@@ -477,7 +477,13 @@ function RecordingItem(props: {</Show><TooltipIconButtontooltipText="Open recording bundle"- onClick={() => revealItemInDir(`${props.recording.path}/`)}+ onClick={() => {+ const path =+ mode() === "instant"+ ? `${props.recording.path}/content/output.mp4`+ : `${props.recording.path}/`;+ revealItemInDir(path);+ }}><IconLucideFolder class="size-4" /></TooltipIconButton>