After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665947 - Keyboard Layout module dumps core under IceWM
Keyboard Layout module dumps core under IceWM
Status: RESOLVED NOTGNOME
Product: gnome-control-center
Classification: Core
Component: Keyboard
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-11 12:42 UTC by Bela Lubkin
Modified: 2011-12-11 12:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
harden against unset XDG_CURRENT_DESKTOP (423 bytes, patch)
2011-12-11 12:43 UTC, Bela Lubkin
none Details | Review

Description Bela Lubkin 2011-12-11 12:42:46 UTC
Ubuntu 11.10 x86_64 with everything updated as much as possible (using oneiric-proposed archive).

gnome-control-center is version 3.2.2 (1:3.2.2-0ubuntu1)
icewm is version 1.3.7-1

Cause: IceWM does not set environment variable $XDG_CURRENT_DESKTOP; gnome-control-center relies on this variable to be set.  Crash happens because it tries to dereference a null pointer returned by g_getenv().

TO REPRODUCE under any window manager:

   $ env -u XDG_CURRENT_DESKTOP gnome-control-center
   [ click on Keyboard Layout ]
   [ OR click on Keyboard, then Layout Settings ]

Patch attached.  The patch makes gnome-control-center treat a missing $XDG_CURRENT_DESKTOP the same as an empty value.
Comment 1 Bela Lubkin 2011-12-11 12:43:45 UTC
Created attachment 203210 [details] [review]
harden against unset XDG_CURRENT_DESKTOP
Comment 2 Bela Lubkin 2011-12-11 12:51:15 UTC
Apologies, this bug is not in the Gnome sources but in Ubuntu additions: see debian/patches/{10_keyboard_layout_on_unity,53_use_ubuntu_help}.patch in https://launchpad.net/ubuntu/precise/+source/gnome-control-center/1:3.2.2-0ubuntu4/+files/gnome-control-center_3.2.2-0ubuntu4.debian.tar.gz