From afc25242a1a195fe197c626b8e4860e17a42cabd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Fri, 29 Apr 2016 10:37:53 +0800 Subject: [PATCH] gnu: gedit: Enable Python Console plugin. * gnu/packages/gnome.scm (gedit)[arguments]: Wrap with PYTHONPATH. --- gnu/packages/gnome.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 24708e3f21..f54fd29305 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -3944,9 +3944,12 @@ javascript engine and the GObject introspection framework.") (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (gtksourceview (assoc-ref inputs "gtksourceview")) - (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (gi-typelib-path (getenv "GI_TYPELIB_PATH")) + (python-path (getenv "PYTHONPATH"))) (wrap-program (string-append out "/bin/gedit") + ;; For plugins. `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)) + `("PYTHONPATH" ":" prefix (,python-path)) ;; For language-specs. `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview "/share")))))