* 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:
parent
8960f038dd
commit
5799fe7382
@ -120,7 +120,7 @@ import ../upstart-jobs/gather.nix {
|
|||||||
(import ../upstart-jobs/xserver.nix {
|
(import ../upstart-jobs/xserver.nix {
|
||||||
inherit config;
|
inherit config;
|
||||||
inherit (pkgs) stdenv writeText lib xterm slim xorg mesa;
|
inherit (pkgs) stdenv writeText lib xterm slim xorg mesa;
|
||||||
inherit (pkgs.gnome) metacity;
|
inherit (pkgs.gnome) metacity GConf;
|
||||||
fontDirectories = import ./fonts.nix {inherit pkgs;};
|
fontDirectories = import ./fonts.nix {inherit pkgs;};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, writeText, lib, xorg, mesa, xterm, slim, metacity
|
{ stdenv, writeText, lib, xorg, mesa, xterm, slim, metacity, GConf
|
||||||
|
|
||||||
, config
|
, config
|
||||||
|
|
||||||
@ -68,6 +68,8 @@ let
|
|||||||
${if windowManager == "twm" then "
|
${if windowManager == "twm" then "
|
||||||
${xorg.twm}/bin/twm &
|
${xorg.twm}/bin/twm &
|
||||||
" else if windowManager == "metacity" then "
|
" 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 &
|
${metacity}/bin/metacity &
|
||||||
" else abort ("unknown window manager "+ windowManager)}
|
" else abort ("unknown window manager "+ windowManager)}
|
||||||
${xterm}/bin/xterm -ls
|
${xterm}/bin/xterm -ls
|
||||||
|
Loading…
Reference in New Issue
Block a user