Skip to content

gui: fix Linux portal dialog response handling#6

Closed
GGRei wants to merge 1 commit into
mainfrom
fix-linux-portal-dialog-response
Closed

gui: fix Linux portal dialog response handling#6
GGRei wants to merge 1 commit into
mainfrom
fix-linux-portal-dialog-response

Conversation

@GGRei

@GGRei GGRei commented Jul 3, 2026

Copy link
Copy Markdown
Owner

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.

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 closed this Jul 3, 2026
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.

1 participant