You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title implied, using the tauri dialog plugin to open a file system dialog will cause Aborted (core dumped) when exiting the App. This seems to only happen to Linux.
Reproduction
This a code snip from my project, I have a button from frontend to trigger this command and it will open the system file select dialog.
use directories::UserDirs;
use tauri_plugin_dialog::DialogExt;
#[tauri::command]
async fn select_path(app_handle: tauri::AppHandle) -> String {
if let Some(user_dirs) = UserDirs::new() {
let file_path = app_handle
.dialog()
.file()
.set_directory(user_dirs.home_dir())
.blocking_pick_folder();
...
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_shell::init())
.invoke_handler(tauri::generate_handler![
...
select_path,
...
])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
If I don't open the dialog and exit the app, it will close normally. But if I open the dialog (even just close the dialog and select nothing), it will give the Aborted (core dumped) error on exiting the app.
Aborted (core dumped)
Expected behavior
Opening file select dialog should not causing any core dumped error.
Describe the bug
As the title implied, using the tauri dialog plugin to open a file system dialog will cause Aborted (core dumped) when exiting the App. This seems to only happen to Linux.
Reproduction
This a code snip from my project, I have a button from frontend to trigger this command and it will open the system file select dialog.
If I don't open the dialog and exit the app, it will close normally. But if I open the dialog (even just close the dialog and select nothing), it will give the Aborted (core dumped) error on exiting the app.
Expected behavior
Opening file select dialog should not causing any core dumped error.
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: