Hey there,
im trying to add a dialog. The app freezes and is unresponsive and it seems its waiting for the not existing dialog window to close. The same code works on a windows machine so i suspect its something linux/ubuntu specific.
I also had to set the env: WEBKIT_DISABLE_DMABUF_RENDERER=1 to get it to run at all.
[✔] Environment
- OS: Ubuntu 22.04 X64
✔ webkit2gtk-4.1: 2.42.5
✔ rsvg2: 2.52.5
✔ rustc: 1.76.0 (07dca489a 2024-02-04)
✔ cargo: 1.76.0 (c84b36747 2024-01-18)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 20.11.0
- yarn: 1.22.19
- npm: 10.4.0
[-] Packages
- tauri [RUST]: 2.0.0-beta.6
- tauri-build [RUST]: 2.0.0-beta.4
- wry [RUST]: 0.37.0
- tao [RUST]: 0.26.0
- @tauri-apps/api [NPM]: 2.0.0-beta.3
- @tauri-apps/cli [NPM]: 2.0.0-beta.4
<script lang="ts">
import { ask } from '@tauri-apps/plugin-dialog';
const askDialog = async () => {
const msg = await ask('TEST', { title: 'test', kind: 'warning' });
console.log(msg);
};
</script>
<button on:click={askDialog}>ask!</button>
permissions are set like this, so there are no errors in the dev console.
"permissions": [
...
"dialog:allow-ask",
...
]
i feel like i'm missing something obvious :), I'm also not sure how to debug this to figure out whats going on under the hood.