Skip to content

Commit

Permalink
Try shell.openPath()
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Jan 19, 2024
1 parent 03adf2e commit 13aedfb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/zui/src/plugins/brimcap/packets/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ 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, env, commands} from "src/zui"
import {window, commands} from "src/zui"
import {queryForConnLog} from "./query-conn-log"
import {DOWNLOAD} from "./types"
import * as log from "src/core/log"
import {shell} from "electron"

function getSearchArgsFromConn(conn: zed.Record) {
const dur = conn.try("duration") as zed.Duration
Expand Down Expand Up @@ -41,8 +43,10 @@ export async function downloadPackets(root: string, pool: string, uid: string) {
} else {
// Commenting this out to see if the "blocking" in openExternal might be the problem
log.debug("I am about to call openExternal()")
env.openExternal(dest)
//env.openExternal(dest)
await shell.openPath(dest)
window.showSuccessMessage("Packets extracted. Opening...")
log.debug("I just saw the Packets extracted message")
}
}
}
Expand Down

0 comments on commit 13aedfb

Please sign in to comment.