From 7b6e2e1c689a40b9a077a819322d5b571ea76642 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Tue, 10 Mar 2015 14:03:12 -0700 Subject: [PATCH] lightdm: Fix rendering --- .../services/x11/display-managers/lightdm.nix | 26 +++++++++++-------- .../lightdm-gtk-greeter/default.nix | 2 -- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/nixos/modules/services/x11/display-managers/lightdm.nix b/nixos/modules/services/x11/display-managers/lightdm.nix index 47d94dbe73b7..d4cf88a7ffde 100644 --- a/nixos/modules/services/x11/display-managers/lightdm.nix +++ b/nixos/modules/services/x11/display-managers/lightdm.nix @@ -26,19 +26,15 @@ let buildInputs = [ pkgs.makeWrapper ]; buildCommand = '' - mkdir -p $out/gtk-3.0/ - - # This wrapper ensures that we actually get ?? (fonts should be OK now) + # This wrapper ensures that we actually get themes makeWrapper ${pkgs.lightdm_gtk_greeter}/sbin/lightdm-gtk-greeter \ $out/greeter \ - --set XDG_DATA_DIRS ${pkgs.gnome2.gnome_icon_theme}/share \ - --set XDG_CONFIG_HOME $out/ - - # We need this to ensure that it actually tries to find icons from gnome-icon-theme - cat - > $out/gtk-3.0/settings.ini << EOF - [Settings] - gtk-icon-theme-name=gnome - EOF + --prefix PATH : "${pkgs.glibc}/bin" \ + --set GTK_DATA_PREFIX "${pkgs.gnome3.gnome_themes_standard}" \ + --set GTK_EXE_PREFIX "${pkgs.gnome3.gnome_themes_standard}" \ + --set GTK_PATH "${pkgs.gnome3.gnome_themes_standard}" \ + --set XDG_DATA_DIRS "${pkgs.gnome3.gnome_themes_standard}/share:${pkgs.gnome3.gnome_icon_theme}/share" \ + --set XDG_CONFIG_HOME ${pkgs.gnome3.gnome_themes_standard}/share cat - > $out/lightdm-gtk-greeter.desktop << EOF [Desktop Entry] @@ -73,6 +69,13 @@ let greeter-session = ${cfg.greeter.name} ''; + gtkGreeterConf = writeText "lightdm-gtk-greeter.conf" + '' + [greeter] + theme-name = Adwaita + icon-theme-name = Adwaita + ''; + in { options = { @@ -112,6 +115,7 @@ in ''; }; + environment.etc."lightdm/lightdm-gtk-greeter.conf".source = gtkGreeterConf; environment.etc."lightdm/lightdm.conf".source = lightdmConf; environment.etc."lightdm/users.conf".source = usersConf; diff --git a/pkgs/applications/display-managers/lightdm-gtk-greeter/default.nix b/pkgs/applications/display-managers/lightdm-gtk-greeter/default.nix index 176888328a5c..171fefc8a094 100644 --- a/pkgs/applications/display-managers/lightdm-gtk-greeter/default.nix +++ b/pkgs/applications/display-managers/lightdm-gtk-greeter/default.nix @@ -6,8 +6,6 @@ #ToDo: bad icons with gtk2; # avatar icon is missing in standard hicolor theme, I don't know where gtk3 takes it from -#ToDo: Failed to open sessions directory: Error opening directory '${lightdm}/share/lightdm/remote-sessions': No such file or directory - let ver_branch = "2.0"; version = "2.0.0";