all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Alex ter Weele <alex.ter.weele@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: GTK applications crash on start
Date: Mon, 05 Mar 2018 09:34:46 +0100	[thread overview]
Message-ID: <87vaeaex95.fsf@gnu.org> (raw)
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")

Alex ter Weele <alex.ter.weele@gmail.com> skribis:

> Alex ter Weele <alex.ter.weele@gmail.com> writes:
>
>>
>>     $ echo $LD_LIBRARY_PATH
>>
>>     $ echo $LD_PRELOAD
>>     /gnu/store/hfz0z0fs14jgl0kzk5hid2msr83lxii1-spectrwm-3.1.0/lib/libswmhack.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= 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#L3764. 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_hack.c#L137

Well, the library name says it all.  :-)

Thanks,
Ludo’.

      reply	other threads:[~2018-03-05  8:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-01  3:37 GTK applications crash on start Alex ter Weele
2018-03-02 13:56 ` Ludovic Courtès
2018-03-02 14:05   ` Alex ter Weele
2018-03-02 16:05     ` Ludovic Courtès
2018-03-02 19:42       ` Alex ter Weele
2018-03-02 22:39 ` Ludovic Courtès
2018-03-03 18:32   ` Alex ter Weele
2018-03-03 18:47     ` Alex ter Weele
2018-03-05  8:34       ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vaeaex95.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=alex.ter.weele@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.