[GH-ISSUE #4114] [Bug] missing xdg_foreign support #1848

Open
opened 2026-03-23 21:17:40 +00:00 by mirror · 3 comments
Owner

Originally created by @superiums on GitHub (Dec 7, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4114

Bug Description

when try to export markdown or change the data dir,
the dialog not display, report following err:


(AppFlowy:4539): Gdk-WARNING **: 11:21:23.973: Server is missing xdg_foreign support
  2023-12-07 11:33:07 ERROR  Uncaught platform error
    at dart-ffi/src/lib.rs:156

How to Reproduce

i'm on void linux. and dwl and wayland.

just click the button for chane data dir, or click share markdown.

maybe some lib needed ? i don't know which one it is.

is it possible to use the commen way like other apps use (eg. chromium, gedit....) ? they could open the filechoose dialog correctlly.

Expected Behavior

file choose dialog appears.

Operating System

void-linux

AppFlowy Version(s)

0.3.8

Screenshots

No response

Additional Context

No response

Originally created by @superiums on GitHub (Dec 7, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4114 ### Bug Description when try to export markdown or change the data dir, the dialog not display, report following err: ```bash (AppFlowy:4539): Gdk-WARNING **: 11:21:23.973: Server is missing xdg_foreign support 2023-12-07 11:33:07 ERROR Uncaught platform error at dart-ffi/src/lib.rs:156 ``` ### How to Reproduce i'm on void linux. and dwl and wayland. just click the button for chane data dir, or click share markdown. maybe some lib needed ? i don't know which one it is. is it possible to use the commen way like other apps use (eg. chromium, gedit....) ? they could open the filechoose dialog correctlly. ### Expected Behavior file choose dialog appears. ### Operating System void-linux ### AppFlowy Version(s) 0.3.8 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@sburris0 commented on GitHub (Jan 8, 2024):

Also seeing this on my machines:

  • nixos + sway + wayland
  • nixos + gnome + wayland

So linux/wayland is the common denominator here

Sounds like maybe a file selector plugin is needed? https://stackoverflow.com/questions/64620106/how-to-open-graphical-files-picker-in-flutter-on-linux

<!-- gh-comment-id:1881999289 --> @sburris0 commented on GitHub (Jan 8, 2024): Also seeing this on my machines: * nixos + sway + wayland * nixos + gnome + wayland So linux/wayland is the common denominator here Sounds like maybe a file selector plugin is needed? https://stackoverflow.com/questions/64620106/how-to-open-graphical-files-picker-in-flutter-on-linux
Author
Owner

@LucasXu0 commented on GitHub (Jan 9, 2024):

@sburris0 Yes, we're using the file picker package for selecting a file. However, the documentation din't mention that there is a required library/package needed for installation. Therefore, I'm unsure how to fix it, as it works fine on my Ubuntu machine.

<!-- gh-comment-id:1882483276 --> @LucasXu0 commented on GitHub (Jan 9, 2024): @sburris0 Yes, we're using the file picker package for selecting a file. However, the documentation din't mention that there is a required library/package needed for installation. Therefore, I'm unsure how to fix it, as it works fine on my Ubuntu machine.
Author
Owner

@vascowhite commented on GitHub (Jun 4, 2025):

Also seeing this on Debian Testing using hyprland and Gimp 3.04.
It seems that wayland is indeed the common denominator.

 gimp
set device 'Wayland Pointer' to mode: disabled
dlopen: /tmp/.mount_gimpLOHIGl/usr/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/file-heif/../../../.././libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by /usr/lib/x86_64-linux-gnu/libheif/plugins/libheif-aomenc.so)
dlopen: libopenjp2.so.7: cannot open shared object file: No such file or directory
dlopen: libx265.so.215: cannot open shared object file: No such file or directory
dlopen: /tmp/.mount_gimpLOHIGl/usr/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/file-heif/../../../.././libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by /usr/lib/x86_64-linux-gnu/libheif/plugins/libheif-libde265.so)
dlopen: libdav1d.so.7: cannot open shared object file: No such file or directory

(gimp:2877236): Gdk-WARNING **: 16:55:51.463: Server is missing xdg_foreign support
gimp_widget_set_handle_on_mapped: gdk_wayland_window_export_handle() failed. It will not be possible to set windows in other processes as transient to this display shell.

(gimp:2877236): Gdk-WARNING **: 16:55:55.326: Server is missing xdg_foreign support
gimp_widget_set_handle_on_mapped: gdk_wayland_window_export_handle() failed. It will not be possible to set windows in other processes as transient to this display shell.
/tmp/.mount_gimpLOHIGl/usr/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/script-fu/script-fu: fatal error: GIMP crashed
Segmentation fault (core dumped)
<!-- gh-comment-id:2940595048 --> @vascowhite commented on GitHub (Jun 4, 2025): Also seeing this on Debian Testing using hyprland and Gimp 3.04. It seems that wayland is indeed the common denominator. ```bash gimp set device 'Wayland Pointer' to mode: disabled dlopen: /tmp/.mount_gimpLOHIGl/usr/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/file-heif/../../../.././libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by /usr/lib/x86_64-linux-gnu/libheif/plugins/libheif-aomenc.so) dlopen: libopenjp2.so.7: cannot open shared object file: No such file or directory dlopen: libx265.so.215: cannot open shared object file: No such file or directory dlopen: /tmp/.mount_gimpLOHIGl/usr/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/file-heif/../../../.././libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by /usr/lib/x86_64-linux-gnu/libheif/plugins/libheif-libde265.so) dlopen: libdav1d.so.7: cannot open shared object file: No such file or directory (gimp:2877236): Gdk-WARNING **: 16:55:51.463: Server is missing xdg_foreign support gimp_widget_set_handle_on_mapped: gdk_wayland_window_export_handle() failed. It will not be possible to set windows in other processes as transient to this display shell. (gimp:2877236): Gdk-WARNING **: 16:55:55.326: Server is missing xdg_foreign support gimp_widget_set_handle_on_mapped: gdk_wayland_window_export_handle() failed. It will not be possible to set windows in other processes as transient to this display shell. /tmp/.mount_gimpLOHIGl/usr/lib/x86_64-linux-gnu/gimp/3.0/plug-ins/script-fu/script-fu: fatal error: GIMP crashed Segmentation fault (core dumped) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1848
No description provided.