GNU bug report logs

#44414 xterm has GI_TYPELIB_PATH set when started via gdm via fluxbox

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Reply or subscribe to this bug. View this bug as an mbox, status mbox, or maintainer mbox

Report forwarded to bug-guix@gnu.org:
bug#44414; Package guix. (Tue, 03 Nov 2020 10:00:02 GMT) (full text, mbox, link).


Acknowledgement sent to Danny Milosavljevic <dannym@scratchpost.org>:
New bug report received and forwarded. Copy sent to bug-guix@gnu.org. (Tue, 03 Nov 2020 10:00:02 GMT) (full text, mbox, link).


Message #5 received at submit@debbugs.gnu.org (full text, mbox, reply):

From: Danny Milosavljevic <dannym@scratchpost.org>
To: <bug-guix@gnu.org>
Subject: xterm has GI_TYPELIB_PATH set when started via gdm via fluxbox
Date: Tue, 3 Nov 2020 10:59:10 +0100
[Message part 1 (text/plain, inline)]
Hi,

this is one of the bug reports in the aftermath of the problem I had outlined
in "GNOME in Guix" thread.

Currently, even when using xterm, started by fluxbox, started by gdm-x-session,
the environment variable GI_TYPELIB_PATH is set inside the shell started by
that xterm.

Please don't do set GI_TYPELIB_PATH that way.
[Message part 2 (application/pgp-signature, inline)]

Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@gnu.org> to control@debbugs.gnu.org. (Thu, 03 Dec 2020 17:11:03 GMT) (full text, mbox, link).


Information forwarded to bug-guix@gnu.org:
bug#44414; Package guix. (Fri, 27 Aug 2021 19:55:01 GMT) (full text, mbox, link).


Message #10 received at 44414@debbugs.gnu.org (full text, mbox, reply):

From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: 44414@debbugs.gnu.org
Subject: Re: bug#44414: xterm has GI_TYPELIB_PATH set when started via gdm via fluxbox
Date: Fri, 27 Aug 2021 15:54:05 -0400
Hello,

Danny Milosavljevic <dannym@scratchpost.org> writes:

> Hi,
>
> this is one of the bug reports in the aftermath of the problem I had outlined
> in "GNOME in Guix" thread.
>
> Currently, even when using xterm, started by fluxbox, started by gdm-x-session,
> the environment variable GI_TYPELIB_PATH is set inside the shell started by
> that xterm.
>
> Please don't do set GI_TYPELIB_PATH that way.

Just confirming that is still the case on a GDM launched session, with:

--8<---------------cut here---------------start------------->8---
cat /proc/$(grep xterm)/environ | xargs -0 -n1 | grep ^GI_TYPELIB
--8<---------------cut here---------------end--------------->8---

Maxim




Information forwarded to bug-guix@gnu.org:
bug#44414; Package guix. (Mon, 30 Aug 2021 17:33:01 GMT) (full text, mbox, link).


Message #13 received at 44414@debbugs.gnu.org (full text, mbox, reply):

From: Maxime Devos <maximedevos@telenet.be>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>, Danny Milosavljevic <dannym@scratchpost.org>
Cc: 44414@debbugs.gnu.org
Subject: Re: bug#44414: xterm has GI_TYPELIB_PATH set when started via gdm via fluxbox
Date: Mon, 30 Aug 2021 19:32:03 +0200
[Message part 1 (text/plain, inline)]
> Danny Milosavljevic <dannym@scratchpost.org> writes:
> 
> > Hi,
> > 
> > this is one of the bug reports in the aftermath of the problem I had outlined
> > in "GNOME in Guix" thread.
> > 
> > Currently, even when using xterm, started by fluxbox, started by gdm-x-session,
> > the environment variable GI_TYPELIB_PATH is set inside the shell started by
> > that xterm.
> > 
> > Please don't do set GI_TYPELIB_PATH that way.

I took a look at which package or service might be setting GI_TYPELIB_PATH.
xterm and fluxbox don't use wrap-program, so probably not those.
gdm uses glib-or-gtk-build-system, which has a glib-or-gtk-wrap phase,
which wraps programs, setting various environment variables.

It should probably be disabled in this case.  I don't know if GDM uses
GI_TYPELIB_PATH.  If it does, somehow GDM must still find the right
typelibs without setting GI_TYPELIB_PATH ... Or maybe it could simply
unset GI_TYPELIB_PATH between fork(...) and exec(...)? (Requires source
code patching ...)

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Wed Apr 9 16:53:40 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.