Skip to content

[v1] The FileDrop event does not trigger in app.run() #14338

@SommerEngineering

Description

@SommerEngineering

We are still using Tauri v1 in MindWork AI Studio.

In our Rust backend, we log all events, see for example here for the FileDrop Event. Unfortunately, the FileDrop event doesn't work. When I insert the following JavaScript code into our app.js and configure "withGlobalTauri": true, I receive the File Drop Events in the frontend:

window.__TAURI__.event.listen('tauri://file-drop', (event) => {
    console.log(event)
})

Is it a bug that the FileDrop events don't arrive in the backend, or do we need to configure Tauri differently? Our Tauri configuration can be found here.

We are grateful for any help.

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