From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: GTK applications crash on start Date: Mon, 05 Mar 2018 09:34:46 +0100 Message-ID: <87vaeaex95.fsf@gnu.org> References: <87fu5kcvpc.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> <87371icday.fsf@gnu.org> <87po4l80yb.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> <87lgf9808m.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esla9-0003mO-OJ for help-guix@gnu.org; Mon, 05 Mar 2018 03:34:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esla6-00030w-L3 for help-guix@gnu.org; Mon, 05 Mar 2018 03:34:53 -0500 Received: from hera.aquilenet.fr ([2a0c:e300::1]:42918) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1esla6-00030J-Do for help-guix@gnu.org; Mon, 05 Mar 2018 03:34:50 -0500 In-Reply-To: <87lgf9808m.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> (Alex ter Weele's message of "Sat, 03 Mar 2018 12:47:37 -0600") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Alex ter Weele Cc: help-guix@gnu.org Alex ter Weele skribis: > Alex ter Weele writes: > >> >> $ echo $LD_LIBRARY_PATH >> >> $ echo $LD_PRELOAD >> /gnu/store/hfz0z0fs14jgl0kzk5hid2msr83lxii1-spectrwm-3.1.0/lib/libsw= mhack.so.0.0 >> >> That's weird, looks like my WM set LD_PRELOAD. I wouldn't have expected >> that. And sure enough, with LD_PRELOAD unset: >> >> $ LD_PRELOAD=3D emacs -Q --eval "(kill-emacs)" >> ...(GTK warnings omitted) >> $ echo $? >> 0 Bingo! >> So why and how does spectrwm set LD_PRELOAD? I can't figure this out. > > OK, I figured it out: > https://github.com/conformal/spectrwm/blob/SPECTRWM_3_1_0/spectrwm.c#L376= 4. Looks > like it injects libswmhack.so so that it can intercept X events, > e.g. https://github.com/conformal/spectrwm/blob/SPECTRWM_3_1_0/lib/swm_ha= ck.c#L137 Well, the library name says it all. :-) Thanks, Ludo=E2=80=99.