tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
84.02k stars 2.52k forks source link

Windows modal warning sound is heard whenever Tauri app starts, upon first click into app window #11233

Open Boscop opened 2 weeks ago

Boscop commented 2 weeks ago

Follow-up to https://github.com/tauri-apps/tauri/issues/1891 This is still an issue for me, on Windows 11: The Windows modal warning sound is heard whenever Tauri app starts, upon the first click into the app window. This is slightly annoying because it draws attention to it and makes the user think "something is wrong" (even just a little, because if a sound gets played, it should be for a reason, otherwise there's no need to divert the user's attention).

Steps to reproduce:

PS D:\dev\proj> cargo create-tauri-app
✔ Project name · tauri-leptos-app
✔ Identifier · com.tauri-leptos-app.app
✔ Choose which language to use for your frontend · Rust - (cargo)
✔ Choose your UI template · Leptos - (https://leptos.dev/)

Template created! To get started run:
  cd tauri-leptos-app
  cargo tauri android init

For Desktop development, run:
  cargo tauri dev

For Android development, run:
  cargo tauri android dev

PS D:\dev\proj> cd .\tauri-leptos-app\
PS D:\dev\proj\tauri-leptos-app> cargo tauri dev

Even though this sound is only heard on the first click into the app window after the app starts, it's still slightly annoying and an unnecessary drain on the user's attention.


Note that this also happens in release builds, e.g. with cargo tauri build and then running .\target\release\tauri-leptos-app.exe.

FabianLars commented 2 weeks ago

This may sound super random but are you using a rare-iah or custom keyboard input layout? I've also had this problem but with Electron apps (and iirc Firefox too but not Tauri?) back when I used the eurkey layout.

Boscop commented 2 weeks ago

@FabianLars I'm using EurKey. I don't think it's rare, it's even included in Linux, but I'm using it on Windows :) Why would that be a problem / cause this issue? 🤔

Btw, I don't have this issue with Electron apps like Slack or Discord or VSCode.

FabianLars commented 2 weeks ago

I have no idea why it's an issue but I dropped eurkey in favor of a diy layout (which funnily enough had the same issue on the first try) with minimal changes (I really just needed äöü with an US keyboard).

iirc I wasn't the only one with this issue (reddit?) and pretty sure it only happened on Windows. What's weird is that the apps/frameworks are different for you and me. Or maybe it changed with a Windows update after I switched idk 🤔

Anyway, I couldn't figure out the issue back then and still have no clue so I hope someone else does have an idea.

FabianLars commented 2 weeks ago

Oh btw, just to make sure it's actually related, can you try it with a standard layout? It may be pure coincidence that you're also using eurkey, especially since only tauri apps are affected on your end.