xterm has GI_TYPELIB_PATH set when started via gdm via fluxbox

  • Open
  • quality assurance status badge
Details
4 participants
  • Danny Milosavljevic
  • Ludovic Courtès
  • Maxim Cournoyer
  • Maxime Devos
Owner
unassigned
Submitted by
Danny Milosavljevic
Severity
important

Debbugs page

D
D
Danny Milosavljevic wrote on 3 Nov 2020 01:59
(address . bug-guix@gnu.org)
20201103105910.5e8a7276@scratchpost.org
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.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl+hKe4ACgkQ5xo1VCww
uqXITgf+P7SGV74WLi4NjRC35+i/kEe3RC+JvbFo2rx6GKThddLPLx9cA69JZ5g7
cFJyoTM+/U137Q6R8u047npYjbXJDZIWogapiUTocijt3uei8B4zEdyMOTrlxbHu
CMd41YHm3nXQ9Y5lyaniThU+vH0K7rdi/GVGPZqYuYEnn2sitxpAj3I+K1oPl+7j
qOX9JLZVwTQrfyewUT9oaqGkFzKd9JvkUl5fpMgmgtsN/Lkgu6x9vwVPK7i2Zkfd
VucfEAHAyvvK4g6/bu+HpIMuA20ey52Pzw3RW1Bu5uwcNoh3jBVlXnc1zOsq7rOe
pcl5uG06+TDIbVi55xwgOsZkId/mUA==
=mFTM
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 3 Dec 2020 09:10
control message for bug #44414
(address . control@debbugs.gnu.org)
87pn3qbysl.fsf@gnu.org
severity 44414 important
quit
M
M
Maxim Cournoyer wrote on 27 Aug 2021 12:54
Re: bug#44414: xterm has GI_TYPELIB_PATH set when started via gdm via fluxbox
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 44414@debbugs.gnu.org)
87a6l2slya.fsf@gmail.com
Hello,

Danny Milosavljevic <dannym@scratchpost.org> writes:

Toggle quote (11 lines)
> 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:

Toggle snippet (3 lines)
cat /proc/$(grep xterm)/environ | xargs -0 -n1 | grep ^GI_TYPELIB

Maxim
M
M
Maxime Devos wrote on 30 Aug 2021 10:32
(address . 44414@debbugs.gnu.org)
a36053d592e4b384d585b6c25438dcce798afb2a.camel@telenet.be
Toggle quote (13 lines)
> 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.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYS0WExccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7n+qAP9h8FJjYPvflK6PliYHJl11Rkt9
6Pq4ml3h/Rnm6EvREQD+JayFoKbJE9Dca98FfZZGWovpRnn2lbcpjf4cA9DwQQo=
=n6/Q
-----END PGP SIGNATURE-----


?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 44414@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 44414
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch