Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jffaust opened this issue Jan 12, 2025 · 0 comments
Open

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

jffaust opened this issue Jan 12, 2025 · 0 comments
Labels
bug Something isn't working plugin: shell

Comments

@jffaust
Copy link

jffaust commented Jan 12, 2025

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

@FabianLars FabianLars transferred this issue from tauri-apps/tauri Jan 12, 2025
@FabianLars FabianLars added bug Something isn't working plugin: shell labels Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin: shell
Projects
None yet
Development

No branches or pull requests

2 participants