Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion apps/desktop/src/workdsh-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,14 @@ function browserWorkerRequest(): { port: number, profile: string } | undefined {
}

function startBrowserWorker(request: { port: number, profile: string }): void {
// Set this before Electron becomes ready: hiding the Dock afterwards briefly
// registers every task's browser worker as another foreground application.
// Accessory permits the hidden browser window without a Dock icon or menu bar.
if (process.platform === 'darwin') app.setActivationPolicy('accessory')
app.setPath('userData', request.profile)
app.commandLine.appendSwitch('remote-debugging-address', '127.0.0.1')
app.commandLine.appendSwitch('remote-debugging-port', String(request.port))
void app.whenReady().then(async () => {
app.dock?.hide()
const page = new BrowserWindow({
show: false,
width: 1280,
Expand Down
Loading