Skip to content

gui: fix Linux portal dialog response handling#70

Merged
GGRei merged 1 commit into
vlang:mainfrom
GGRei:fix-linux-portal-dialog-response
Jul 3, 2026
Merged

gui: fix Linux portal dialog response handling#70
GGRei merged 1 commit into
vlang:mainfrom
GGRei:fix-linux-portal-dialog-response

Conversation

@GGRei

@GGRei GGRei commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes Linux native file dialog freezes when the XDG Portal response is emitted on the real request handle instead of the guessed handle path.

The Linux portal backend now reads the request handle returned by the portal call, waits for Response on that exact object path, and keeps the previous convention-path handling as the pre-installed match to avoid fast-response races.

Fix #69
Codex review validation : here

Validation

  • git diff --check
  • v fmt -verify nativebridge/_linux_backend_test.v
  • v test nativebridge/_linux_backend_test.v
  • v test nativebridge
  • v test _native_dialog_test.v _window_queue_test.v _window_refresh_test.v
  • v -path "/tmp|@vlib|@vmodules" -W -o /tmp/gui_issue69_dialogs_compile_check /tmp/gui/examples/dialogs.v
  • Manual Linux smoke: native_open_dialog() cancel no longer freezes the app

@GGRei GGRei force-pushed the fix-linux-portal-dialog-response branch from 23eb60d to 5b96ff0 Compare July 3, 2026 17:18
@GGRei GGRei merged commit b50f0db into vlang:main Jul 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Freeze after using native dialogs on Linux

1 participant