Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Jan 24, 2024
1 parent a5ee8af commit bc512d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/zui/src/plugins/brimcap/packets/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import * as zed from "@brimdata/zed-js"
import {join} from "path"
import {createCli} from "../cli"
import os from "os"
import {window, env, commands} from "src/zui"
import {window, commands} from "src/zui"
import {queryForConnLog} from "./query-conn-log"
import {DOWNLOAD} from "./types"
import {shell} from "electron"

function getSearchArgsFromConn(conn: zed.Record) {
const dur = conn.try("duration") as zed.Duration
Expand Down Expand Up @@ -38,7 +39,7 @@ export async function downloadPackets(root: string, pool: string, uid: string) {
const msg = JSON.parse(err)?.error || `brimcap search failed: ${err}`
window.showErrorMessage(msg)
} else {
env.openExternal(dest)
shell.openPath(dest)
window.showSuccessMessage("Packets extracted. Opening...")
}
}
Expand Down

0 comments on commit bc512d4

Please sign in to comment.