Skip to content

[bug] Tauri does not support sidecar filenames with dots #2310

@jffaust

Description

@jffaust

Describe the bug

When trying to use a sidecar with a filename that contains dots, Tauri will not handle it properly.

Additionally, if the sidecar's filename has a prefix that is the same as the name of the Tauri app, running npm run tauri dev will launch an endless number of app windows until you shut down the terminal or close the computer.

Reproduction

For an app called CoolApp, which produces an executable like CoolApp.exe

Working: "externalBin": ["binaries/bugrepro"]

NOT WORKING: "externalBin": ["binaries/bug.repro"]
Throws error Failed to spawn sidecar: Io(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." })

NOT WORKING: "externalBin": ["binaries/CoolApp.Server"]
Tauri launches the app endlessly until terminal closed or computer shut down

Expected behavior

Filenames with dots supported.

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22631 x86_64 (X64)
    ✔ WebView2: 131.0.2903.112
    ✔ MSVC: 
        - Visual Studio Build Tools 2022
        - Visual Studio Enterprise 2022
    ✔ rustc: 1.84.0 (9fc6b4312 2025-01-07)
    ✔ cargo: 1.84.0 (66221abde 2024-11-19)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.10.0
    - pnpm: 9.12.3
    - npm: 10.2.3
    - deno: deno 2.1.5

[-] Packages
    - tauri 🦀: 2.2.0
    - tauri-build 🦀: 2.0.4
    - wry 🦀: 0.48.0
    - tao 🦀: 0.31.1
    - @tauri-apps/api : 2.2.0
    - @tauri-apps/cli : 2.2.3 (outdated, latest: 2.2.4)

[-] Plugins
    - tauri-plugin-opener 🦀: 2.2.3
    - @tauri-apps/plugin-opener : 2.2.3
    - tauri-plugin-websocket 🦀: 2.2.1
    - @tauri-apps/plugin-websocket : 2.2.1
    - tauri-plugin-shell 🦀: 2.2.0
    - @tauri-apps/plugin-shell : 2.2.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:1420/
    - framework: Svelte
    - bundler: Vite

Stack trace

No response

Additional context

No response

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