Bug 4631 - Embedding external editor crashes Claws-Mail on Wayland
Summary: Embedding external editor crashes Claws-Mail on Wayland
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: wayland (show other bugs)
Version: 4.1.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2022-09-29 21:54 UTC by claws-mail-bugs
Modified: 2023-11-17 16:32 UTC (History)
0 users

See Also:


Attachments

Description claws-mail-bugs 2022-09-29 21:54:01 UTC
I configured gvim as my external editor. This works fine when running Claws-Mail under xwayland. However, when running natively under Wayland, Claws-Mail crashes when starting the external editor.
I got the following output on the terminal:

claws-mail:8462): Gtk-WARNING **: 21:32:47.987: GtkSocket: only works under X11

(claws-mail:8462): Gdk-WARNING **: 21:32:47.987: /var/tmp/portage/x11-libs/gtk+-3.24.34/work/gtk+-3.24.34/gdk/x11/gdkwindow-x11.c:5653 drawable is not a native X11 window

bug 2355, comment 8 predicted this, I believe.

Steps to reproduce:
1. Configure an external editor, e.g. 'gvim -f --socketid %w %s'
2. Open a compose window
3. Launch the external editor
Comment 1 Michael Schwendt 2022-10-01 12:52:55 UTC
Argument '%w' is the essential item for reproducible. If not using '%w', external editors continue to work fine with Wayland, e.g. "emacsclient -a emacs -c %s".
Comment 2 Paul 2023-11-17 16:32:01 UTC
fixed in git, https://git.claws-mail.org/?p=claws.git;a=commitdiff;h=ad77f62cf69eb1dd5ca50ec341eead5c01251475

It's not possible to use GtkSocket under wayland.

Note You need to log in before you can comment on or make changes to this bug.