Skip to content

New window created on each trigger of sidecar #4823

Description

@siegerts

Describe the bug

Every time I trigger the sidecar via JS a new window is opened.

Very similar to #3564

Reproduction

  1. create sidecar executable in go
package main

import "fmt"

func something() {
	fmt.Println("my msg here")
}

func main() {
	something()
}
  1. configure sidecar in app
  2. call sidecar from frontend Vue app
<script setup>
...


async function testSidecar() {
 
  let cmd = Command.sidecar('bin/sc')
  let out = await cmd.execute()
  console.log(out)
}
</script>
  1. new app window opens

Expected behavior

No response

Platform and versions

> tauri "info"


Environment
  › OS: Mac OS 12.4.0 X64
  › Node.js: 16.13.0
  › npm: 8.1.0
  › pnpm: 7.3.0
  › yarn: 1.22.17
  › rustup: 1.24.3
  › rustc: 1.61.0
  › cargo: 1.61.0
  › Rust toolchain: stable-x86_64-apple-darwin

Packages
  › @tauri-apps/cli [NPM]: 1.0.5
  › @tauri-apps/api [NPM]: 1.0.2
  › tauri [RUST]: 1.0.5,
  › tauri-build [RUST]: 1.0.4,
  › tao [RUST]: 0.12.2,
  › wry [RUST]: 0.19.0,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://localhost:5173/
  › framework: Vue.js

App directory structure
  ├─ dist
  ├─ node_modules
  ├─ public
  ├─ src-tauri
  ├─ .vscode
  └─ src

Stack trace

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions