On Fri, 04 Aug 2023 at 20:05:20 +0800, YunQiang Su wrote: > > > Instead of doing this low-level ELF manipulation, I'm testing a patch > > > which > > > uses an environment variable to propagate the search path into the > > > executable - that seems less likely to go wrong on unusual architectures.
This is https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2858 and is also available as part of https://salsa.debian.org/gnome-team/gnome-shell/-/merge_requests/71. I think that's a more future-proof approach than adjusting the pointer based on guessing what the base address is. > FYI: this patch can fix the segfault problem in > maybe_add_rpath_introspection_paths I think my approach seems more likely to be reliable, but we can use yours as a plan B. > I am continue working on (EE) failed to write to Xwayland fd: Broken > pipe problem. Thanks! smcv