xterm has GI_TYPELIB_PATH set when started via gdm via fluxbox

OpenSubmitted by Danny Milosavljevic.
Details
4 participants
  • Danny Milosavljevic
  • Ludovic Courtès
  • Maxim Cournoyer
  • Maxime Devos
Owner
unassigned
Severity
important
D
D
Danny Milosavljevic wrote on 3 Nov 2020 10: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 outlinedin "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 bythat xterm.
Please don't do set GI_TYPELIB_PATH that way.
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl+hKe4ACgkQ5xo1VCwwuqXITgf+P7SGV74WLi4NjRC35+i/kEe3RC+JvbFo2rx6GKThddLPLx9cA69JZ5g7cFJyoTM+/U137Q6R8u047npYjbXJDZIWogapiUTocijt3uei8B4zEdyMOTrlxbHuCMd41YHm3nXQ9Y5lyaniThU+vH0K7rdi/GVGPZqYuYEnn2sitxpAj3I+K1oPl+7jqOX9JLZVwTQrfyewUT9oaqGkFzKd9JvkUl5fpMgmgtsN/Lkgu6x9vwVPK7i2ZkfdVucfEAHAyvvK4g6/bu+HpIMuA20ey52Pzw3RW1Bu5uwcNoh3jBVlXnc1zOsq7rOepcl5uG06+TDIbVi55xwgOsZkId/mUA===mFTM-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 3 Dec 2020 18:10
control message for bug #44414
(address . control@debbugs.gnu.org)
87pn3qbysl.fsf@gnu.org
severity 44414 importantquit
M
M
Maxim Cournoyer wrote on 27 Aug 21:54 +0200
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 19:32 +0200
(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 usesGI_TYPELIB_PATH. If it does, somehow GDM must still find the righttypelibs without setting GI_TYPELIB_PATH ... Or maybe it could simplyunset GI_TYPELIB_PATH between fork(...) and exec(...)? (Requires sourcecode patching ...)
Greetings,Maxime.
-----BEGIN PGP SIGNATURE-----
iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYS0WExccbWF4aW1lZGV2b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7n+qAP9h8FJjYPvflK6PliYHJl11Rkt96Pq4ml3h/Rnm6EvREQD+JayFoKbJE9Dca98FfZZGWovpRnn2lbcpjf4cA9DwQQo==n6/Q-----END PGP SIGNATURE-----

?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 44414@debbugs.gnu.org