GNOME Bugzilla – Bug 665947
Keyboard Layout module dumps core under IceWM
Last modified: 2011-12-11 12:51:15 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.
Created attachment 203210 [details] [review] harden against unset XDG_CURRENT_DESKTOP
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