Merge pull request #18244 from DamienCassou/emacs-gtk_data_prefix

emacs module: Fix to get properly themed GTK apps
This commit is contained in:
Damien Cassou 2016-09-08 09:05:11 +02:00 committed by GitHub
commit 6dc9ed317c

View File

@ -79,9 +79,13 @@ in {
environment.systemPackages = [ cfg.package editorScript ]; environment.systemPackages = [ cfg.package editorScript ];
environment.variables = if cfg.defaultEditor then { environment.variables = {
EDITOR = mkOverride 900 "${editorScript}/bin/emacseditor"; # This is required so that GTK applications launched from Emacs
} else {}; # get properly themed:
GTK_DATA_PREFIX = "${config.system.path}";
} // (if cfg.defaultEditor then {
EDITOR = mkOverride 900 "${editorScript}/bin/emacseditor";
} else {});
}; };
meta.doc = ./emacs.xml; meta.doc = ./emacs.xml;