Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@ Do not add `-dUNICODERTL` or reuse the application's `.mooncompiler` profile
when building the IDE/LCL. These select different string ABIs; adding a define
to the Lazarus command line cannot change an already compiled RTL.

Under WSLg, `./lazarus` selects the GTK X11 backend (Xwayland) unless
`GDK_BACKEND` is already set: the WSLg compositor crashes when a window that has
a transient child is destroyed, and the IDE does this on its first run.

Since 2.5.2, the IDE profile preserves the FPC `TStringList` insertion hooks used
by Lazarus subclasses. The Unicode application profile retains the Delphi
insertion contract. Both profiles are checked independently in CI.
Expand Down
5 changes: 5 additions & 0 deletions lazarus
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ export PP="$IDE_FPC"
export PPC_CONFIG_PATH="$IDE_TOOLCHAIN/etc"
export LAZARUSDIR="$LAZARUS_SOURCE"
unset FPCDIR
# The WSLg compositor crashes when a window that has a transient child is
# destroyed, which the IDE does on its first run; Xwayland is not affected.
if [[ -z ${GDK_BACKEND-} && -d /mnt/wslg ]]; then
export GDK_BACKEND=x11
fi
exec "$LAZARUS_EXE" "--pcp=$PRIMARY_CONFIG" "$@"
Loading