* Some hackery to get Metacity to find its default settings. GConf is

really evil: it requires applications to install their GConf schemas
  into one of a fixed set of directories that gconfd searches.  This
  is of course rather imperative.

svn path=/nixos/trunk/; revision=8120
This commit is contained in:
Eelco Dolstra 2007-02-28 23:18:16 +00:00
parent 8960f038dd
commit 5799fe7382
2 changed files with 4 additions and 2 deletions

View file

@ -120,7 +120,7 @@ import ../upstart-jobs/gather.nix {
(import ../upstart-jobs/xserver.nix {
inherit config;
inherit (pkgs) stdenv writeText lib xterm slim xorg mesa;
inherit (pkgs.gnome) metacity;
inherit (pkgs.gnome) metacity GConf;
fontDirectories = import ./fonts.nix {inherit pkgs;};
})

View file

@ -1,4 +1,4 @@
{ stdenv, writeText, lib, xorg, mesa, xterm, slim, metacity
{ stdenv, writeText, lib, xorg, mesa, xterm, slim, metacity, GConf
, config
@ -68,6 +68,8 @@ let
${if windowManager == "twm" then "
${xorg.twm}/bin/twm &
" else if windowManager == "metacity" then "
# !!! Hack: load the schemas for Metacity.
GCONF_CONFIG_SOURCE=xml::~/.gconf ${GConf}/bin/gconftool-2 --makefile-install-rule ${metacity}/etc/gconf/schemas/*.schemas
${metacity}/bin/metacity &
" else abort ("unknown window manager "+ windowManager)}
${xterm}/bin/xterm -ls